github初次提交及后续提交
 github初次提交及后续提交 
 创建仓库后初次提交
1
git init //把这个目录变成Git可以管理的仓库    
1
git add . //把项目中的文件提交到仓库           
1
git commit -m "first commit" //注释。“中的内容是注释的内容”               
1
git remote add origin https://github.com/0Zing/leetcode.git //关联到github仓库     
1
git push -u origin master //把本地库的所有内容推送到github仓库     
提交过之后的后续提交
git add . 
 git commit -m something (不用加双引号了!!!) 
 git push
 This post is licensed under  CC BY 4.0  by the author.