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
原文地址:https://www.cnblogs.com/zhonghuahero/p/9525300.html