本文介绍了Git Checkout分支从其他分支离开目录树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个branch2,其来源是branch1,并重命名了一个来自branch1的目录.签出branch1时,重命名的目录仍然存在,但未标记为未暂存的修改.当然,重命名的目录不会作为对branch1的提交出现.为什么会这样?
I have a branch2 who's source is branch1 and renamed a directory originating from branch1. When checking out branch1 the renamed directory remains present but is not marked as an unstaged modification. The renamed directory is of course not present as a commit on branch1. Why is this occurring?
推荐答案
上述目录层次结构从不包含文件叶,这意味着它实际上并未被git跟踪.
The said directory hierarchy never contained a file leaf which means it was not actually tracked by git.
这篇关于Git Checkout分支从其他分支离开目录树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!