- Initialize local repo
git init
- Add files (all files, or files to be committed)
git add.
- Commit the changes
git commit -m "message"
- Add the repo
git remote add origin *remote repository url*
- Push to Github
git push -u origin master
- Pull changes from Github
git pull remote_name branch_name