简体   繁体   中英

Track remote branch from local branch

By using:

git checkout --track origin/branch1

does it matter to which local branch am I already checked out ? For example is it different to run the above when I am on local master or to another local branch? If yes what is the difference? Does branch1 become branch of the current local branch ?

不,无论您从哪里开始,本地branch1都将与远程branch1完全相同。

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