1
git上传文件,完整过程见https://blog.csdn.net/sinat_20177327/article/details/76062030
如果要忽略文件,在.gitinore中加文件名/文件夹名,然后要先git rm -r --cached .
再git add .
参见https://www.jianshu.com/p/e5360fa04152
https://github.community/t/nothing-to-commit-working-tree-clean/2594
具体匹配规则:https://www.cnblogs.com/kevingrace/p/5690241.html
2
查看状态
git status
管理修改
git add readme.txt
git commit -m "git tracks changes"
# 本地删除
rm test.txt
# 仓库删除
git rm test.txt
git commit -m "rm test.txt"
4 关于创建分支
https://www.liaoxuefeng.com/wiki/896043488029600/900003767775424
# 创建
git branch name
# 切换
git checkout name
5 上传分支
git push origin test:test
6 git拉取远程分支到本地
https://blog.csdn.net/carfge/article/details/79691360
git pull origin branch-name
7 重新命名远程、本地仓库
https://www.v2as.com/article/b2fbffec-5642-454c-a90f-1471bbf77eba