鍍金池/ 教程/ Java/ 第37關 push_branch
第13關 stash
第37關 push_branch
附錄A Git 學習資源
第54關 submodule
第15關 restructure
第18關 push_tags
第17關 tag
前言
第22關 reset_soft
Githug 安裝和使用方法
第41關 repack
第16關 log
第7關 ignore
第10關 number_of_files_committed
第29關 diff
第1關 init
第4關 commit
第33關 checkout_tag
第20關 commit_in_future
第14關 rename
第39關 fetch
第9關 status
第11關 rm
第27關 remote_add
第3關 add
第24關 remote
第26關 pull
第44關 rename_commit
第23關 checkout_file
第32關 checkout
第55關 contribute
第47關 reorder
關卡列表
第35關 branch_at
第5關 clone
第45關 squash
第43關 grep
第36關 delete_branch
第53關 conflict
第34關 checkout_tag_over_branch
第42關 cherry-pick
第19關 commit_amend
Githug 通關攻略
附錄C Vim 常用命令
第48關 bisect
第46關 merge_squash
第2關 config
附錄B Linux 常用命令
第21關 reset
第50關 find_old_branch
第12關 rm_cached
第8關 include
第31關 branch
第49關 stage_lines
第30關 blame
第52關 restore
第51關 revert
第28關 push
第25關 remote_url
第40關 rebase
第38關 merge
第6關 clone_to_folder

第37關 push_branch

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" />