1
我有兩個分支在bitbucket中,我想推只有一些提交(這是由我批准)從一個分支到另一個分支是主分支。 有人可以向我解釋我如何在bitbucket環境中做到這一點?如何推動批准提交從一個分支到另一個分支在bitbucket
在此先感謝。
我有兩個分支在bitbucket中,我想推只有一些提交(這是由我批准)從一個分支到另一個分支是主分支。 有人可以向我解釋我如何在bitbucket環境中做到這一點?如何推動批准提交從一個分支到另一個分支在bitbucket
在此先感謝。
可以使用git的櫻桃採摘
1. git log
this will list all commits take the commit id which you wanted to move.
2. git cherry-pick <commit-id>
apply this after switching to master branch
3.then push new master to remote
git push <REMOTENAME> <BRANCHNAME>
eg. git push origin master
or
git push <REMOTENAME> <LOCALBRANCHNAME>:<REMOTEBRANCHNAME>
eg:
if my remote name is heroku and i want to push local heroku branch to heroku(remote) master barnch(heroku/master)
git push heroku heroku:maste
@ suhail areekkan,我可以問你的第三步是什麼命令? –
@MaryamKoulaei更新了答案 –