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