Skip to content

Instantly share code, notes, and snippets.

@ibnsamy96
Forked from gduverger/gist:5910660
Last active November 16, 2022 19:33
Show Gist options
  • Save ibnsamy96/94382367c9e3ab8d3d2d2d179cb8106b to your computer and use it in GitHub Desktop.
Save ibnsamy96/94382367c9e3ab8d3d2d2d179cb8106b to your computer and use it in GitHub Desktop.
http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging
// adding branch2 commets to branch1
$ git checkout <branch1>
$ git merge <branch2>
// merging a branch to main
$ git checkout main
$ git merge <branch needed to be merged to main>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment