简体   繁体   中英

git: how to pull ALL branched from remote repository?

I have a remote repository that has some branches that I don't have on my local repository. I want to import ALL branches from the remote repository to my local one. I tried to use "git pull" or "git fetch" and I stayed with the same branches I had before on my local repo. Do you know what can help me?

git pull origin <remote-branch-name>

确保解决冲突(如果有),然后通过提交合并

git commit -m "pulled from brach-name"

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