git教程:
https://blog.csdn.net/qq_46112274/article/details/115052134
Git Bash Here
git init
git remote add origin https://gitee.com/XXXXprojects.git
git pull origin master
(如果出错 fatal: refusing to merge unrelated histories需使用)git pull origin master --allow-unrelated-histories
git add 文件名/
git commit -m "new files"
git push origin master
有冲突的pull就,先add ,再commit,再pull,解决冲突(git status),用文本编辑器修改冲突位置,然后编译,再add
如何解决冲突:
https://blog.csdn.net/u010393510/article/details/127121169