Stage file for commit:

git add .

Show status of files:

git status
  • Green files will be staged (will be commited on git commit)
  • Red files are unstaged (will not be commited on git commit)

Show what will be staged:

git diff

Show what was staged and will be commited:

git diff --cached

Unstage staged file or folder (don't touch content of file):

get reset HEAD file

Remove file or folder from git contron (don't touch content of file)

git rm -r --cached file