Skip to content

Files

Latest commit

 

History

History
28 lines (22 loc) · 391 Bytes

git-commands.md

File metadata and controls

28 lines (22 loc) · 391 Bytes

Git Commands

Get the stats

git apply --stat patch_name.patch

Check the patch

git apply --check patch_name.patch

Apply Patch

git apply patch_name.patch

Create patch

Stage all your changes and run the command below:

git diff --cached  > patch_name.patch

Get diff between 2 files

git diff --no-index <file_a> <file_b> > diff.patch