Skip to content

Instantly share code, notes, and snippets.

@itsmikita
Last active October 15, 2023 21:25
Show Gist options
  • Save itsmikita/7f11e5b3105301971e568bf70e3530fe to your computer and use it in GitHub Desktop.
Save itsmikita/7f11e5b3105301971e568bf70e3530fe to your computer and use it in GitHub Desktop.
Merge a git branch into master

To merge a git branch into master:

git fetch
git rebase origin/master
git checkout master
git pull origin master
git merge [branch]
git push origin master

Amen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment