我有一个分支签出,我编辑并提交了一个文件。与此同时,其他人将更改推送到同一个文件。
当我执行 git pull 时,我看到了
First, rewinding head to replay your work on top of it...
Applying: add new line
Applying: create 1 conf
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging <filename>
CONFLICT (add/add): Merge conflict in <filename>
Recorded preimage for '<filename>'
Failed to merge in the changes.
Patch failed at 0002 create 1 conf
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".
我试图手动解决文件中的冲突,但是我发现我不在任何分支上。我想知道为什么会这样。
git status
# Not currently on any branch.
# Untracked files: