Command line instructions

Git global setup
git config --global user.name "bingo"
git config --global user.email "xxxxx@126.com"
Create a new repository
git clone http://192.168.20.246/xxx/dm.git
cd dm
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 http://192.168.20.246/xxx/dm.git
git add .
git commit
git push -u origin master
 posted on 2016-03-11 10:51  小网民  阅读(216)  评论(0编辑  收藏  举报