Git CheetSheet

Basic

Automatically stages everything and commit it:

git commit -a

Only staged files are to committed, others remain unstaged:

git commit -m 'message'

See the changes you have made in the working directory:

git diff

See the changes of the staged files:

git diff --staged

......