Skip to content

Instantly share code, notes, and snippets.

@omar-yassin
Created November 11, 2013 19:36
Show Gist options
  • Save omar-yassin/7419030 to your computer and use it in GitHub Desktop.
Save omar-yassin/7419030 to your computer and use it in GitHub Desktop.
GIT: merge remote repo to local directory with similar code
git init; git add .; git commit #current directory
git fetch path/to/repo master:whatever-branch-name-you-want
git merge whatever-branch-name-you-want
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment