2017-09-07 4 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 

リンク

suhailのareekkan @

What does cherry-picking a commit with git mean?

+0

ステップ桜が-選ぶ使用することができますか? –

+0

@MaryamKoulaeiは答えを更新しました –

関連する問題