Jerrys-MacPro:mac-pppoe jerry$ git add README-cn.md
Jerrys-MacPro:mac-pppoe jerry$ git commit -m"add chinese doc"
[master cf11166] add chinese doc
1 file changed, 95 insertions(+)
create mode 100644 README-cn.md
Jerrys-MacPro:mac-pppoe jerry$ git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 1.69 KiB | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
09231cb..cf11166 master -> master
On your computer, move the file you’d like to upload to GitHub into the local directory that was created when you cloned the repository.
Open Terminal (for Mac and Linux users) or the command prompt (for Windows users).
Change the current working directory to your local repository.
Stage the file for the first commit to your repository.
# Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.
Commit the files that you’ve staged in your local repository.
# Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again.
Push the changes in your local repository to GitHub.
# Pushes the changes in your local repository up to the remote repository you specified as the origin