- [1. 安装git并关联github](https://cloud.tencent.com/developer/audit/support-plan/4869460#1__gitgithub_2)
- [2. 本地仓库初始化步骤](https://cloud.tencent.com/developer/audit/support-plan/4869460#2__6)
- [3. git的使用教程](https://cloud.tencent.com/developer/audit/support-plan/4869460#3_git_20)
git的好处不用说,也确实对工作有很大的帮助。
git init
git add 'file"
git commit -m 'first time using'
git remote add origin + 远程仓库地址 //链接远程仓库,创建主分支
git pull origin master // 把本地仓库的变化连接到远程仓库主分支
git pull --rebase origin master //解决远程仓库中存在本地仓库不存在文件的问题
git push -u origin master //把本地仓库的文件推送到远程仓库
之后便可以一直使用git push origin master
来推送自己的版本了。
推荐网址:https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000