Initialize the local warehouse
git init
Connect to a remote repository (github creation)
github repository to create a remote replication repository address, executed git remote add origin warehouse address (equivalent to the address expressed by origin)
A. Adding to the staging area
git add .
It said it would submit all new files and edited files to the staging area, not including the deleted files
git add -A .
Adding represent all the changed files to the staging area
git add -u
Represents all add edit, and delete files, the file does not include the newly added
two.
git commit -m "submit comment"
three.
git push origin branch name
Generally git push origin master