git命令

Git global setup
git config --global user.name "用户名"
git config --global user.email "邮箱"
Create a new repository
git clone xxxxx(git地址)
cd xxx
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master


Existing folder or Git repository
cd existing_folder
git init
git remote add origin xxxx(git地址)
git add . git commit git push -u origin master
 
原文地址:https://www.cnblogs.com/marshhu/p/8460098.html