Make an existing Git branch track a remote branch? Given a branch foo and a remote upstream: As of Git 1.8.0: git branch -u upstream/foo Or, if local branch foo is not the current branch: git branch -u upstream/foo foo Or, if you like to type longer
我能说今天在github上新建分支的时候懵逼了半天吗..为了下次不再懵逼,还是在这里记录一下吧.. 进入你的项目---code---Branch----点击那个倒三角-----你会发现一个输入框(这是一个非一般的输入框,,,我的第一印象是把它当成了搜索框,,,汗.....仔细看,才发现,人家写着 find or create a branch ... )-------输入你想创建的分支的名字(应该会有基于哪个分支的说明) 嗯!!!就是这样,,觉得自己有点小懵逼.......