For the reason that I don’t want to enter my
password again and again just for push code to
I’m sick of this , I learn that there is a way to store credentials for
Git in the local file.
Run the following command:
$ mkdir ~/.git-credentials $ git config --global credential.helper store $ git config --global credential.helper `store --file=~/.git-credentials/git.credentials` --add
Then, try to use
git push to push some code, it should ask you to enter the
password. Don’t worry, it just needs for once.
Now you can push code to Cloud without entering the
password , enjoy 🙂
You can check your credentials storage by the following command:
$ vim ~/.git-credentials/git.credentials