I’m new to using git. Each time I want to push my file to github, it always shows me notification to enter my passphrase. Ex: password for ‘https://username@bitbucket.org’
I want my git remember the passphrase for me. How should I possibly do that on windows 7? I’ve already read the help page here https://help.github.com/articles/set-up-git
If you’re following the instructions on Github, note this line.
You’re using ssh, so the git credential helper isn’t going to work. You have a few options.
The ssh issue isn’t specific to git. You can set up an ssh-agent so you only have to enter an ssh key password once. It will be remembered, safely stored in memory, until you log out. Github has a tutorial about setting up an ssh-agent.
No matter which option you pick, I would highly recommend you take the time to set up an ssh-agent. Ssh is so useful and so widespread you’re going to run into this problem again.
Instead of cloning from
git@github.com:username/my-repo.gityou can clone fromhttps://github.com/username/my-repo.git. It’s thehttpbutton on your project page. Then the git credential helper described in the github docs will work. You’ll probably have to install it first, or use their Github app. This is all described in the Password Caching section of the Github on Windows setup guide.The guide mentions they have a Github app now and it can probably take care of this for you. However this is only a stop gap as other git servers won’t have such a thing.