2016-12-06 53 views
0

虽然检查出一个分支我得到了一个错误说中断的系统调用在GIT

"Some untracked working tree files would be overwritten by checkout. 
    Please move or remove them before you can checkout. View them" 

后来我已经删除了这些文件未追踪并试图再次结帐。但现在Iam面临以下问题:

Failed to read object 5df02069fcff5919daf91215f7706fc826c76: Interrupted system call 

我正在使用Intellij IDE。

回答

4

你有一些未跟踪的文件。所以,请做commitstash

$ git commit -am 'message'   # add & commit 
$ git checkout -b <new-branch>  # checkout to new branch 

Or, 
$ git add . 
$ git stash       # stash the changes 
$ git checkout -b <new-branch> 
+0

这一个工作。谢谢。 – swetha

+0

现在如果我需要检查出现有的分支,我已经尝试了git checkout ,它再次显示错误“一些未跟踪的工作树文件将被结帐覆盖。 请先移动或删除它们,然后才能结帐。查看它们” – swetha

+0

您可能在同一行文件中发生了改变,所以发生冲突。所以,最好的方法是“在当前分支中提交更改”,然后签出到另一个正在退出的分支。 –