git first push

Git global setup
git config --global user.name "****" git config --global user.email "****@****.com"

Create a new repository
mkdir test
cd test
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin **********
git push -u origin master

Push an existing Git repository
cd existing_git_repo
git remote add origin ssh://git@gitlab.makenv.com:10022/caoqitong/test.git
git push -u origin master
 
posted @ 2015-04-13 21:35  Leyton-Caotong  阅读(232)  评论(0编辑  收藏  举报