git在windows上配置ssh公鑰

2021-06-20 03:39:21 字數 340 閱讀 9096

git在windows上配置ssh公鑰

一 .設定git的user name和email:

$ git config --global user.name "lxyz"

$ git config --global user.email "[email protected]"

二 生成金鑰

ssh-keygen -t rsa -c 「[email protected]

按3個回車,密碼為空。(不要輸密碼)

然後到.ssh下面將id_rsa.pub裡的內容複製出來貼上到github個人中心的賬戶設定的ssh key裡面

git for windows

在windows上安裝和配置git工具

windows也支援git了,相關詳細資訊見 1.正常安裝git,安裝時選擇可在command裡執行 這樣更方便執行 2.配置git difftool命令對應的diff工具 2.2 在command中執行命令,git config global diff.tool bc git config glo...

在Windows上安裝Git

安裝完成後,在開始選單裡找到 git git bash 蹦出乙個類似命令列視窗的東西,就說明git安裝成功!安裝完成後,還需要最後一步設定,在命令列輸入 git config global user.name your name git config global user.email email ...

git教程(在Windows上安裝Git)

安裝完成後,在開始選單裡找到 git git bash 蹦出乙個類似命令列視窗的東西,就說明git安裝成功!安裝完成後,還需要最後一步設定,在命令列輸入 git config global user.name your name git config global user.email email ...