新安裝的git 要打開gitbash 運行下面兩個命令:
1 git config --global user.name "Your Name"
2 git config --global user.email you@example.com
然后就可以 git pull http://jfsdfjsdjfjsd.git
當你使用git Bash Here輸入錯誤密碼后 無法自動讓你重新輸入密碼,一直報錯:
Cloning into 'shopping'...
remote: Incorrect username or password ( access token )
fatal: Authentication failed for 'https://gitee.com/caobiandejiezhi66/shopping.git/'
這個時候需要再次輸入命令:
git config --system --unset credential.helper
這樣在pull或者clone的時候會再次提示讓你 輸入賬號和密碼。