These are the git commands I usually use (for self-reminder), sorted from the most-used ones:
git status
: to see the statesgit log --oneline
: to see which commit I'm atgit add <filename(s)>
: to stage a file(s)git commit -m "<Some message>"
: to make a commitgit push
: push the latest update to the remotegit pull
: pull the latest states from the remotegit clone <repo_url>
: clone a new repositorygit diff
: to see which lines in the file that haven't been staged