git 创建项目

Git global setup:
git config --global user.name "hello"
git config --global user.email "hello@domain"
Create Repository
mkdir projectname
cd projectname
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin http://domain/projectname.git
git push -u origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin http://domain/projectname.git
git push -u origin master
posted @ 2018-08-23 17:50  zhonghuahero  阅读(95)  评论(0编辑  收藏  举报