Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 278 Bytes

git.md

File metadata and controls

7 lines (5 loc) · 278 Bytes

#USEFUL GIT SNIPPETS

Export files changed since specified commit

git archive -o diff/patch.zip HEAD $(git diff --name-only 77d39ed^ HEAD -- src/)

Generate diff file for changes between 2 commits in specified directory

git diff 77d39ed^ HEAD -- src/ > diff/myq-tend_2.diff