For creating GitHub repository:

  1. git init
  2. git remote add origin
  3. git add .
  4. commit
  5. push

For updating GitHub repository:

  1. git add .
  2. commit
  3. push

Additional GitHub commands:

  1. git status