mkdir NewsSite //新建一个GitHelloWorld文件夹,本地git仓
cd /Users/aa/Desktop/Python/PythonWeb/NewsSite //cd 命令进入相应的页面
git init //git初始化
Initialized empty Git repository in /Users/aa/Desktop/Python/PythonWeb/NewsSite/.git/
git remote rm origin //解除关联
git remote add origin (git地址) //关联远程仓库
git pull origin master//从远程抓取
git push origin master//推送到远程仓库
Username for 'https://gitee.com': brewer001 //git账户名
Password for 'https://brewer001@gitee.com': //git密码
Everything up-to-date
git add NewSite;//添加上传的文件(必须是有.git的文件夹里)
git commit -m "first commit”; //提交
git push -u origin master; //推送到远程仓库