http://stackoverflow.com/questions/520650/how-do-you-make-an-existing-git-branch-track-a-remote-branch
git 버전에 따라 command가 다르다.
1.8.X) $git branch -u [local_branch] [remote_upstream]
1.7.X) $git branch --set-upstream [local_branch] [remote_upstream]
1.8.X는 [local_branch]를 생략하면 현재 local branch를 이용해서 설정한다.
1.7.X는 [local_branch]를 생략하면 remote_upstream과 같은 이름의 branch를 생성해 버리므로, 이미 존재하는 local branch를 tracking으로 연결하려면 생략하면 안된다.
댓글 없음:
댓글 쓰기