Skip to content

Instantly share code, notes, and snippets.

@mathewpeterson
Created January 6, 2011 21:48
Show Gist options
  • Save mathewpeterson/768661 to your computer and use it in GitHub Desktop.
Save mathewpeterson/768661 to your computer and use it in GitHub Desktop.
this will checkout every file matching an extension from another branch into the currently checked-out branch
for file in `find . -type f | grep -i "\.EXT"; do git checkout OTHERBRANCH "${file}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment