简体   繁体   中英

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.

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

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.

Sure I'm missing something because I'm new to 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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