最近一直在使用window 7系统,有些事情必须使用Git
一开始我是拒绝的,但么有办法只好硬着头皮上咯,下面是我在使用Git
时所遇到的一些问题以及解决方法!
-NO.1 执行git add
文件时,出现如下错误
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 执行git push
文件时,出现如下警告
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
再执行git push
-NO.3 git 提交出现,如下错误
fatal: Unable to create ‘project_path/.git/index.lock’: File exists. exists
解决方式rm -f ./.git/index.lock
暂时就遇到了这么多,以后有遇到新问题随时更新
技术交流群:534926022(免费) 511040024(0.8/人付费)
推荐一款学习iOS开发的app_____|______| | 传送门