I currently have a master branch and I branched out from it to code on a new dev branch
How to merge or rebase dev on master locally and then remotely, without losing commits or descriptions ?
I currently have a master branch and I branched out from it to code on a new dev branch
How to merge or rebase dev on master locally and then remotely, without losing commits or descriptions ?
If there are no other changes on the master
branch you can use a fast-forward merge:
git checkout master
git merge --ff dev
git push origin master
At that point, both master
and dev
would be referring to the same commit.