//设置全局变量
Git global setup
git config --global user.name "XX"
git config --global user.email "xxxx@qq.com"
Create a new repository
git clone xxxx.git //克隆仓库
cd app_gamesystem
touch README.md
//提交README文件,并建立master分支
git add README.md
git commit -m "add README"
git push -u origin master
//初始化git并添加源
git init
git remote add origin xxxx.git
git add .
git commit -m "Initial commit"
git push -u origin master
//重命名远程分支并添加源
git remote rename origin old-origin
git remote add origin xxxx.git
git push -u origin --all
git push -u origin --tags