You've made some changes to a local branch and want to share it, but aren't yet ready to merge it with the 'master' branch. Push only 'test_branch' to the remote repository.
你的一個本地分支有一些修改,你想把它分享出去,但又不想合并到 master 分支上。僅把 'test_branch' 推送到遠程倉庫。
我們曾在第28關學習過推送命令,語法如下:
$ git push remote-name branch-name
其中 remote-name 是遠程倉庫名,branch-name 是分支名。
第37關過關畫面如下:
http://wiki.jikexueyuan.com/project/githug-walkthrough/images/level-37-push-branch.png" alt="第37關 push_branch" />