git命令

Git global setup
git config --global user.name "liguangchaojava"
git config --global user.email "liguangchaojava@163.com"
Create a new repository
git clone https://code.aliyun.com/liguangchaojava/test.git
cd test
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 https://code.aliyun.com/liguangchaojava/test.git
git add .
git commit
git push -u origin master
posted on 2018-01-11 13:21  xgrowing  阅读(82)  评论(0编辑  收藏  举报