Skip to content

Instantly share code, notes, and snippets.

@ksloan
Created September 26, 2013 02:48
Show Gist options
  • Save ksloan/6709216 to your computer and use it in GitHub Desktop.
Save ksloan/6709216 to your computer and use it in GitHub Desktop.
Copy a file from one branch to another (that doesn't already exist in current branch)
touch <filename>;
git add <filename>;
git checkout <other branch> <filename>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment