打开需要推送的文件夹:
![](https://s1.51cto.com/images/blog/202003/10/34817f9a11545a2cc3286c49d17c536e.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

创建文件夹:
mkdir python_day01
进入文件夹:
cd python_day01
初始化:
git init  
创建redame文件:
touch README.md
![](https://s1.51cto.com/images/blog/202003/10/7a23eea3b8c17df78f1ffaf894a5581c.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

git add . (“点” 代表打包当前文件夹所有文件)
git commit -m "frist commit" (第几次提交)

将远程UIR命名:
git remote add origin https://gitee.com/hu_xin_xiang/python_day02.git
推送代码:
git push -u origin master
git pull --rebase origin master
git remote add origin https://gitee.com/hu_xin_xiang/python_day02.git
git push -u origin master

别名报错处理:
![](https://s1.51cto.com/images/blog/202003/10/bfa6731988c8ec230b83db5d1a443392.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)