GIT设置全局变量(你的仓库信息)
1. git config --global user.name "xxxxx"
2. git config --global user.email "xxxx@qq.com"
创建GIT仓库
mkdir "仓库名"
cd "仓库名"
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin "仓库地址"
git push -u origin master
已经有了仓库
cd existing_git_repo
git remote add origin "仓库地址"
git push -u origin master
修改仓库代码,进行提交
git add .
git status -s
git commit -m "修改"
git push -u origin master