Skip to content

Instantly share code, notes, and snippets.

@radiotaiso
Created July 16, 2018 16:50
Show Gist options
  • Save radiotaiso/e7a579ada7588201d82e2e24a2f49ce7 to your computer and use it in GitHub Desktop.
Save radiotaiso/e7a579ada7588201d82e2e24a2f49ce7 to your computer and use it in GitHub Desktop.
Pull a specific file from another branch.
# On branch master
git checkout gh-pages # Move to the branch you wanto to pull the file to
git checkout master -- myplugin.js # pull the file from
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