- git init
- git add —– this add all the changes to stage area
- git commit -m
- git status
- git diff xxx
- git log
git log –pretty=oneline
git log –all –decorate –oneline –graph = commit history graph
- git reflog
- go back last version —— git reset –hard HEAD^
or specific version ——- git reset –hard xxxxxx -
check out file ——- git checkout — xxxx