我试图检查来自不同git分支的项目。我做了取,然后结账,它说"最新" ,但在哪里,我看到了 " L02" ?
me@appliance (~/temp/mydir): ls
l01
me@appliance (~/temp/mydir): git fetch
git me@appliance (~/temp/mydir): git checkout l02
Already on 'l02'
Your branch is up-to-date with 'origin/l02'.
me@appliance (~/temp/mydir): ls
l01
答案 0 :(得分:1)
如果您已经在所需的分行,则需要使用
$ git pull
这将应用git fetch和git merge
请参阅What is the difference between 'git pull' and 'git fetch'?
答案 1 :(得分:0)
尝试使用git pull而不是Fetch(它合并更改)