Git global setup
git config --global user.name "用户名"
git config --global user.email "用户邮箱"
Create a new repository
git clone <git地址>
cd AMPM
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder
cd existing_folder
git init
git remote add origin <git地址>
git add .
git commit
git push -u origin master
Existing Git repository
cd existing_repo
git remote add origin <git地址>
git push -u origin --all
git push -u origin --tags
//强制推送
git push -f origin