git -- 随笔

Git global setup
git config --global user.name "*"
git config --global user.email "*@163.com"
Create a new repository
git clone git@gitlab.com:*/web.git
cd web
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:*/web.git
git add .
git commit
git push -u origin master

posted on 2015-11-16 00:16  yhdsir  阅读(148)  评论(0编辑  收藏  举报

导航