二、Git命令

一、新项目处理

git init 初始化,本地初始化一个git项目
git add * 将项目所有文件添加到本地git仓库
git commit -m "第一次提交" 提交项目到仓库缓存仓并编写提交原因
git remote add origin https://github.com/SuRenLiu/TestGithubDeme.git 第一次提交需要设置连接远程仓库的地址
git push -u origin master push代码到远程Git仓库, -u用户参数 origin用户名 master表示master主分支

猜你喜欢

转载自www.cnblogs.com/surenliu/p/12392733.html