Skip to content

Instantly share code, notes, and snippets.

@sumitpore
Last active March 17, 2020 09:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumitpore/5bb77ea3595afb7092b00e4d5abe753e to your computer and use it in GitHub Desktop.
Save sumitpore/5bb77ea3595afb7092b00e4d5abe753e to your computer and use it in GitHub Desktop.
Merging Through CLI
git fetch origin
git checkout -b "source-branch" "origin/source-branch"
git checkout "origin/target-branch"
git merge --no-ff "source-branch"
git commit -m "Commit Message"
git push origin HEAD:target-branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment