安装
@H_502_5@sudo apt install git
@H_502_5@
配置账号
@H_502_5@git config --global user.email "-----@qq.com"
git config --global user.name "-----"
@H_502_5@
@H_502_5@git init
@H_502_5@
@H_502_5@git add README.md
@H_502_5@提交修改
git commit -m "first commit"
@H_502_5@设置提交的远程路径,后面不用在设置了
git remote add origin https://github.com/gjq246/pythontest.git
@H_502_5@提交到服务器
git push -u origin master
从服务器更新下来
@H_502_5@git pull origin master
@H_502_5@查看状态 git status