单人SVN提交bug

时间:2021-10-02 12:55:50
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.

单人SVN提交bug

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