前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Biosn收集的Git常见的错误解决方式--转自Bison的技术博客

Biosn收集的Git常见的错误解决方式--转自Bison的技术博客

作者头像
Bison
发布2018-06-28 17:53:39
5120
发布2018-06-28 17:53:39
举报
文章被收录于专栏:iOS DeveloperiOS Developer

最近一直在使用window 7系统,有些事情必须使用Git一开始我是拒绝的,但么有办法只好硬着头皮上咯,下面是我在使用Git时所遇到的一些问题以及解决方法!

-NO.1 执行git add文件时,出现如下错误

代码语言:javascript
复制
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文件时,出现如下警告

代码语言:javascript
复制
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 提交出现,如下错误

代码语言:javascript
复制
fatal: Unable to create ‘project_path/.git/index.lock’: File exists. exists
解决方式rm -f ./.git/index.lock

暂时就遇到了这么多,以后有遇到新问题随时更新 技术交流群:534926022(免费) 511040024(0.8/人付费) 推荐一款学习iOS开发的app_____|______| | 传送门

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016.01.04 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • -NO.1 执行git add文件时,出现如下错误
    • 解决方式rm -f ./.git/index.lock
    • -NO.2 执行git push文件时,出现如下警告
      • 解决方式git config --global push.default matching再执行git push
      • -NO.3 git 提交出现,如下错误
        • 解决方式rm -f ./.git/index.lock
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档