天天看點

重裝系統後,續接git項目位址

重裝位址後,倉庫代碼放在D盤,而且很大,重新clone的話太浪費時間。

首先安裝好git、配置git name 和email、倉庫中添加ssh key。

然後到代碼檔案夾下,

删掉隐藏的.git檔案,

右鍵Git Bash Here,

git init

git clone xxxxx(git倉庫位址)

重點:

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

輸入yes回車,看到百分比時,及時按Ctrl + C 停止。

此時,本地的代碼就和git倉庫中續接上了。