Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 361 Bytes

MergeBranchIntoMain.md

File metadata and controls

23 lines (21 loc) · 361 Bytes

Merge branch into main

git fetch
git rebase origin/main
git checkout main
git merge <branch>
git push origin main

git checkout <branch>
    or
git branch -d <branch>
git push origin :<branch>

Does this work?

git fetch
git rebase origin/main
git checkout main
git merge <branch>
git branch -d <branch>
git push origin main:<deleted-branch>