- git status - info about changes, staged and unstaged.
- git add path/to/file - stage (index) changes. --all - for all changes.
- git log - view commit history. Flags: -2 - view 2 last commits (any number), --oneline - show short commits info.
- git commit - path to vim editor to write commit message. Fast commit (without vim):
- git commit -m "commit name" - write message and commit.
- git push - push your committed changes to remote repository.
- git pull - pull last changes from remote branch.