Github frequent commands.

  1. Clone repository to current directory.
    git clone
  2. First command to run in a new project.
    git init
  3. Stage all files.
    git add .
  4. Change message to last commit.
    git commit -m "commit message"
  5. Push local commits to remote branch.
    git push origin master
  6. Bring local branch up to date with remote branch.
    git pull origin master
  7. Checking status, revert one commit and push.
    git status
    git log #commit history
    git revert dd62cv34 #revert one commit
    git push origin master