我有远程分支,例如:
$ git branch -r
origin/HEAD -> origin/development
origin/deploy-prod
origin/development
origin/master
我将origin / master签出为
$ git checkout -b trq17 origin/master
$ git branch
development
* trq17
现在我想将trq17分支中的更改推送到远程origin / master。我怎么能这样做?
答案 0 :(得分:2)
您需要先合并它们,然后将结果推送到远程。这降低了人们破坏代码的可能性或者有冲突的代码。
git checkout master
git merge trq17
git commit (if there was a merge commit or conflicts occurred)
git push origin master