Git - Pull in branch as a patch
Using patch files? Stop already. You know they get out of date as soon as you make them. Using a patch branch in git instead.
The import your patch using:
- git diff patch.config-hacks > ~/patch; patch -p1 < ~/patch
Or, if you don't want to patch like the entire branch diff, use a specific path:
- git diff patch.no-pants config/ > ~/patch; patch -p1 < ~/patch
Written by Doug
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#