i just want to send the code of the last commit from developer to the master branch, please explain me how it works My structure is
origin
|
---developer
| |
| --- > start commit start.cpp
| --- >commit 1
| --- >commit 2
| --- >commit 3
| --- >commit 4
---master
|
--- > start commit start.cpp
You'd need to create a new branch from master, cherry-pick the one commit, and send that.
Or you could push up your dev branch and allow the other developer to cherry-pick the one commit.
您可以在主分支签出时挑选最后一次提交。
git cherry-pick <last-commit-id>
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.