Advertisement
Aclegg2011

create git patches

Apr 11th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Creating the patch
  2. git format-patch -1 <sha>
  3. OR
  4. git format-patch -1 HEAD
  5.  
  6. Applying the patch
  7. git apply --stat file.patch # show stats.
  8. git apply --check file.patch # check for error before applying
  9. git am < file.patch # apply the patch finally
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement