zoukankan      html  css  js  c++  java
  • 单人SVN提交bug

    The working copy "初识tableVIew" failed to commit files.
    
    fatal: Unable to create '/Users/zjj/ios项目/UITableView/初识tableVIew/.git/index.lock': File exists.
    
    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.

    mac文件隐藏和显示 命令操作
    显示:defaults write com.apple.finder AppleShowAllFiles -bool true
    隐藏:defaults write com.apple.finder AppleShowAllFiles -bool false

    解决方法:

    rm -f ./.git/index.lock
    打开所有隐藏文件 删除该项目文件下的.git文件夹目录的index.lock即可

    *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'zjj@bogon.(none)')

    .git文件夹目录的config文件加入邮箱和名字
    [core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    [user]
    #添加以下两行:
    email = yourname@me.com
    name = yourname

    个人mac上提交代码仍然不好使 建议更换为svn之类

  • 相关阅读:
    昨天又学到了dp
    LeetCode面试题17.13
    leetcode971
    今天又一题,单调队列leetcode862
    今天学到了一招,LeetCode863
    今天一道简单题,数组排序LeetCode973
    es面试题
    es的常用配置
    es基础一张图
    JMeter中引入外部的JAR包给bean shell 使用
  • 原文地址:https://www.cnblogs.com/zhangdashao/p/4525258.html
Copyright © 2011-2022 走看看