Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 526 Bytes

File metadata and controls

51 lines (30 loc) · 526 Bytes

Basic Local Commands

add

-p | --patch

Add individual changes of a file

$ git add -p README.md

commit

-a | --all

Add all changes for tracked files

$ git commit -a

--amend

Update your previous commit with chance to edit the message

$ git commit --amend

diff

--staged

compare the files in the index

$ git diff --staged filename.php

status

-uno | --untracked-files=no

Prevent the display of untracked files

$ git status -uno