linux克隆到指定目錄:
git clone xxx.git “指定目錄”?
例子:git clone xxx.git ?/data/wwwroot/test/
克隆好了之后,拉取最新的數(shù)據(jù):
git pull ?如果拉去失敗的話 執(zhí)行:git?reset?--hard?origin/master
更新克隆地址:
Git Pull Failed: repository '.git/' not found
問(wèn)題描述:git服務(wù)器遷移,git地址改變,但是本地沒(méi)有變更新的git地址,導(dǎo)致pull或上傳是失敗。
Git Pull Failed: repository 'http://gitlab.***.com/***/***.git/' not found
問(wèn)題解決如下方案:
git remote set-url origin 改變后的git地址(新的git地址),
例如:git remote set-url origin?http://gitlab.***.com/***/***.git