美文网首页
SourceTree 常见问题

SourceTree 常见问题

作者: 灰斗儿 | 来源:发表于2016-10-19 18:07 被阅读276次
    • ! [rejected] 1.0 -> 1.0 (already exists)

    进入项目根目录,终端执行 :git pull --tags

    • 提交代码到gitHub 的时候遇到“fatal:multiple stage entries for merged file” 提示,git status或者git add . 都无济于事。fatal: multiple stage entries for merged file 'filePath/~~~' 最后解决办法:[记得先备份一下]
      终端
    $cd 项目根目录
    $rm .git/index 
    $git add -A 
    $git commit
    
    • fatal:path spec sourtree已经删除的文件无法提交的问题
    如果只是删除这一个文件夹的话
    $sudo rm -rf dir
    $git add -A
    $git commit -m 'remove dir'
    $git push origin master
    

    相关文章

      网友评论

          本文标题:SourceTree 常见问题

          本文链接:https://www.haomeiwen.com/subject/frbxuttx.html