How to let the git command line save the login status of github
扔个三星炸死你
扔个三星炸死你 2017-06-16 09:19:11
0
5
1065

Administrator@changwei MINGW64 /d/github/git-study-test (master)
$ git push
Username for 'https://github.com': 867597730@qq.com

Every time I push, I am asked to enter the account and password of the github website. Is there any way to save the password or login status? I have used keygen to build ssh before and submitted the public key to the ssh settings on the official github website, but it seems to be of no use. . .

扔个三星炸死你
扔个三星炸死你

reply all(5)
仅有的幸福

@Memory Time I would like to add that first check whether your push address is using the ssh protocol

git remote -v

If it starts with https, you need to change it, for example

https://github.com/laravel/laravel.git
要换成这个
git@github.com:laravel/laravel.git

Perform the steps above

git remote rm origin
git remote add origin git@github.com:laravel/laravel.git*
git pull

When you execute git pull, you may be prompted git set-upstream....The balabala prompts you to bind the local branch and the remote branch. Just follow the prompts

There is another way to change the remote resource address to

git remote set-url origin https://<username>:<password>@github.com/<username>/<repo_name>.git

Write the account password into the remote address

http://blog.justwe.site/2017/...

学习ing

Delete the remote repository first

git remote rm origin

To add a remote warehouse, you need to use the ssh protocol

git temote add origin ***
为情所困

First of all, SSH is definitely right.

Try this. /a/11...

仅有的幸福

Set the config file in the hidden .git directory:

[credential]    
    helper = store
三叔

Configure ssh, is it not configured properly?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template