简体   繁体   中英

How do I merge a branch to origin/master

Given the state of my repo below. Let's say I'm not ready to push my changes in my master branch but I am ready to push my changes in my dev branch to origin/master. How do I perform this?

* dcf6713 (master) added line 2 to file2.txt
| * ceee7ec (HEAD -> dev) added line 3 to file1.txt
|/  
* c79818c (origin/master) added line 2 to file1.txt
* 4b11fc7 init

from man git-push:

git push origin HEAD:master

Push the current branch to the remote ref matching master in the origin repository. This form is convenient to push the current branch without thinking about its local name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM