* For initial commits only *
$ git remote add new-origin ---link of github repository---
$ git add .
$ git commit -m "comment"
$ git push new-origin
* For updates *
$ git add .
$ git commit -m "comment"
$ git push new-origin
* Additional commands *
$ git status //To display the current status of the repository you are working on
$ git remote -v //To display lists of origins