git 初始化

Git global setup
git config --global user.name "杨清1"
git config --global user.email "yangqing1@letv.com"
Create a new repository
mkdir lingshu_vmmange
cd lingshu_vmmange
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin git@git.letv.cn:yangqing1/lingshu_vmmange.git
git push -u origin master
Push an existing Git repository
cd existing_git_repo
git remote add origin git@git.letv.cn:yangqing1/lingshu_vmmange.git
git push -u origin master
posted @ 2016-06-06 13:04  8899man  阅读(129)  评论(0编辑  收藏  举报