简体   繁体   English

Git Checkout不下载分支新文件

[英]Git checkout does not download branch new files

I have a problem with a git branch, I'm trying to switch on a different branch where there is some changed files and changed directories but I cannot see these changes on my local repository. 我有一个git分支问题,我试图打开另一个分支,那里有一些更改的文件和更改的目录,但我在本地存储库中看不到这些更改。

On the master I have: 在主我有:

dir1 / files

dir2 / files

on the branch I have 在我的树枝上

new_dir1 / files

dir2 / files

dir3 / files

When the command git fetch && git checkout myBranch I can see on the terminal 当命令git fetch && git checkout myBranch我可以在终端上看到

Checking out files: 100% (31012/31012), done.
Switched to branch 'featured_phase3'
Your branch is up-to-date with 'origin/myBranch'.

But the dir1 is not renamed to new_dir1 and the dir3 is not downloaded. 但是dir1不会重命名为new_dir1,并且dir3也不会下载。

Sure I'm missing something because I'm new to git 当然我错过了一些东西,因为我是git新手

Any help will be appreciate 任何帮助将不胜感激

Thxs 特克斯

Please refer to this answer . 请参考此答案 In short, you need to checkout your branch and then do a git pull 简而言之,您需要签出您的分支,然后执行git pull

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM