github初次提交及后续提交

创建仓库后初次提交

git init //把这个目录变成Git可以管理的仓库    
git add . //把项目中的文件提交到仓库           
git commit -m "first commit" //注释。“中的内容是注释的内容”               
git remote add origin https://github.com/0Zing/leetcode.git //关联到github仓库     
git push -u origin master //把本地库的所有内容推送到github仓库     

提交过之后的后续提交

git add .
git commit -m something (不用加双引号了!!!)
git push

Written on March 2, 2020