You see for a long time I have a problem with git bash, which is that every time I open the console and do git commit
and git push
I have to enter my GPG and SSH password.
Obviously I only do it once for every time I open the console and do git commit
and git push
.
But I would like to know if it is possible to store the GPG and SSH password, to enter it every time I open the console.
I had put a "phrase" when configuring it and it asked me every time I did a push pull etc.
If that's your case just enter
And it should stop asking you for that security phrase.
I know some methods, I put them below.
Save the data directly
It is the easiest and fastest, however your username and password are saved as text in your system, which can be a risk in the future.
Save the data in cache
This is less insecure than the previous one since the timeout in seconds is the time it will take to delete, but they are still saved as plain text
Create on Github
For the particular case of github, they can generate it, you just have to add it using the command
Or if your ide supports it, add it through a plugin like intellij-idea does.
To generate it go to github.com -> Settings -> SSH and GPG keys -> New SSH Key
You have to configure your Git to use SSH...wait for the information. I assume you use Github, although I personally prefer Bitbucket since it works practically the same with the exception that it allows you to have private repositories even in the free account, which Github does not allow.
Basically you should:
This link explains it in more detail:
Install SSH on Github
POST EDIT: Well, if you already had it configured and it keeps asking you for the password, you must create other SSH keys to replace the ones you currently have and when it asks for a password when creating it, tell it to create them without a password so you save having to write it once per session .