最近一直在使用window 7系統(tǒng)宣羊,有些事情必須使用Git
一開始我是拒絕的膘掰,但么有辦法只好硬著頭皮上咯邪财,下面是我在使用Git
時所遇到的一些問題以及解決方法袭灯!
-NO.1 執(zhí)行git add
文件時晌柬,出現(xiàn)如下錯誤
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
解決方式rm -f ./.git/index.lock
-NO.2 執(zhí)行git push
文件時姥份,出現(xiàn)如下警告
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
解決方式git config --global push.default matching
再執(zhí)行g(shù)it push
-NO.3 git 提交出現(xiàn),如下錯誤
fatal: Unable to create ‘project_path/.git/index.lock’: File exists. exists
解決方式rm -f ./.git/index.lock
暫時就遇到了這么多,以后有遇到新問題隨時更新
技術(shù)交流群:534926022(免費(fèi)) 511040024(0.8/人付費(fèi))
推薦一款學(xué)習(xí)iOS開發(fā)的app_____|______| | 傳送門