git全局配置用户
git config --global user.name “xxx”
git config --global user.email “xxx.cn”
情况1、存在git仓库
git clone url.git
//cd xx
//touch README.md
//git add README.md
//git commit -m "add README"
//git push -u origin master
情况2、已存在文件夹,但没有提交到git仓库
cd existing_folder
git init
git remote add origin url.git
git add .
git commit -m "Initial commit"
git push -u origin master
情况3、创建分支?(未尝试)
cd existing_repo
git remote rename origin old-origin
git remote add origin xxx.git
git push -u origin --all
git push -u origin --tags