Created
July 2, 2015 11:10
-
-
Save mrpatrick/8c52565ec3453cf9046f to your computer and use it in GitHub Desktop.
From http://nicolasgallagher.com/git-checkout-specific-files-from-another-branch/ Patch a single file across branches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On branch master | |
git checkout gh-pages | |
git checkout master -- myplugin.js | |
git commit -m "Update myplugin.js from master" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment