Git初始化仓库

 

 

 

Git global setup:
git config --global user.name "再见理想"
git config --global user.email "iexmyth@gmail.cn"
Create Repository
mkdir webapp-mall
cd webapp-mall
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@gitlab.beyond.com:app/webapp-mall.git
git push -u origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@gitlab.beyond.com:app/webapp-mall.git
git push -u origin master
posted @ 2016-12-01 14:44  牧之丨  阅读(1222)  评论(0编辑  收藏  举报