如何新建git仓库

第一步:在git上新建仓库 newProject
第二步:
1)、设置用户名:git config -- global user.name 'github上注册的用户名';
   2)、设置用户邮箱:git config --global user.email '注册时候邮箱
    3)、校验是否成功 git config --list;
第三步:本地命令

 git init
 git add .
 git commit -m 'frist commit'
 git remote add origin test@1806.cksoft.win:/home/test/newProject.git
 git pull --rebase origin master
 git push -u origin master
原文地址:https://www.cnblogs.com/caozhengze/p/15789239.html