从本地分支跟踪远程分支

时间:2017-11-13 13:47:36

标签: git

使用:

git checkout --track origin/branch1

我已经检查了哪个本地分支是否重要?例如,当我在本地主人或另一个本地分支时运行上述内容是不同的?如果是,有什么区别?是branch1 become branch of the current local branch吗?

1 个答案:

答案 0 :(得分:0)

不,无论您从哪里开始,您的本地branch1都会与远程的if (ball.x - ball.radius < block.x + block.w && ball.x + ball.radius > block.x && ball.y - ball.radius < block.y + block.h && ball.y + ball.radius > block.y) { ball.dx = -ball.dx; } 完全相同。