Skip to content

Instantly share code, notes, and snippets.

View ibnsamy96's full-sized avatar
😶
trying to find hope

Mahmoud Samy ibnsamy96

😶
trying to find hope
View GitHub Profile
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>