2017-09-07 50 views

回答

1

可以使用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 

鏈接

What does cherry-picking a commit with git mean?

+0

@ suhail areekkan,我可以問你的第三步是什麼命令? –

+0

@MaryamKoulaei更新了答案 –

相關問題