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之类

  • 相关阅读:
    Mysql备份工具xtraback全量和增量测试
    Linux进程管理四大工具ps dstat top htop
    Linux Netcat 命令——网络工具中的瑞士军刀
    Linux 下载工具 aria2
    C语言宏基础总结
    使用浏览器做编辑器
    设计模式(1)
    OpenGL 编程(1)
    使用ffmpeg推流
    FFMPEG 解码和编码(编码mjpeg)
  • 原文地址:https://www.cnblogs.com/zhangdashao/p/4525258.html
Copyright © 2011-2022 走看看