Skip to content

Instantly share code, notes, and snippets.

@delphian
Created August 7, 2013 19:00
Show Gist options
  • Save delphian/6177336 to your computer and use it in GitHub Desktop.
Save delphian/6177336 to your computer and use it in GitHub Desktop.
Overwrite regex matched files from one branch to another using git diff.
git diff master --name-only | grep -E '(css|sass)' | xargs -I{} git checkout master {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment