Skip to content

Instantly share code, notes, and snippets.

@viktorkelemen
Created November 16, 2012 10:38
Show Gist options
  • Select an option

  • Save viktorkelemen/4086305 to your computer and use it in GitHub Desktop.

Select an option

Save viktorkelemen/4086305 to your computer and use it in GitHub Desktop.
Copy a file from a different branch in Git
git show BRANCH:FILE_PATH > NEW_FILE_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment