84669 人學習
152542 人學習
20005 人學習
5487 人學習
7821 人學習
359900 人學習
3350 人學習
180660 人學習
48569 人學習
18603 人學習
40936 人學習
1549 人學習
1183 人學習
32909 人學習
Administrator@changwei MINGW64 /d/github/git-study-test (master)$ git pushUsername for 'https://github.com': 8675977730@qq.com
每次push的時候都讓我輸入一次github網站的帳號密碼,有什麼辦法可以儲存密碼或登入狀態?我之前已經用keygen建置了ssh並把公鑰提交到了github官網的ssh設定處,但是好像並沒有什麼用啊。 。 。
@回憶時光 補充一下就是先查看一下你的推送地址是不是走的 ssh 協議
git remote -v
如果是 https 打頭的就要換,例如
https://github.com/laravel/laravel.git 要换成这个 git@github.com:laravel/laravel.git
執行上面的步驟
git remote rm origin git remote add origin git@github.com:laravel/laravel.git* git pull
執行git pull的時候可能會提示git set-upstream....什麼的balabala 就是提示將本地分支和遠端分支進行綁定,按照提示操作就好
git pull
git set-upstream....
還有另一個辦法就是將遠端的資源位址換成
git remote set-url origin https://<username>:<password>@github.com/<username>/<repo_name>.git
把帳號密碼寫到遠端位址
http://blog.justwe.site/2017/...
先刪除遠端的倉庫
git remote rm origin
再增加遠端倉庫,要用ssh協定的
git temote add origin ***
首先,SSH一定是對的。
試試這個吧。 /a/11...
隱藏的.git目錄下設定config檔:
[credential] helper = store
配置ssh,是不是沒配好呢
@回憶時光 補充一下就是先查看一下你的推送地址是不是走的 ssh 協議
如果是 https 打頭的就要換,例如
執行上面的步驟
執行
git pull
的時候可能會提示git set-upstream....
什麼的balabala 就是提示將本地分支和遠端分支進行綁定,按照提示操作就好還有另一個辦法就是將遠端的資源位址換成
把帳號密碼寫到遠端位址
http://blog.justwe.site/2017/...
先刪除遠端的倉庫
再增加遠端倉庫,要用ssh協定的
首先,SSH一定是對的。
試試這個吧。 /a/11...
隱藏的.git目錄下設定config檔:
配置ssh,是不是沒配好呢