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
 
posted @ 2018-02-22 21:00  我没有领悟  阅读(107)  评论(0编辑  收藏  举报