Git global setup
git config --global user.name "bingo"
git config --global user.email "zhengbing1206@sina.com"
Create a new repository
git clone git@gitlab.com:zhzb/cnsite.git
cd cnsite
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 git@gitlab.com:zhzb/cnsite.git
git push -u origin master
 posted on 2015-08-17 10:05  小网民  阅读(462)  评论(0编辑  收藏  举报