码迷,mamicode.com
首页 > 其他好文 > 详细

git基本命令

时间:2016-11-09 15:12:56      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:git add   color   pre   提交   本地仓库   push   目录   http   remote   

git init -- 初始化git仓库
git add . --添加当前目录的文件到本地git仓库
git commit -m "my first commit" --提交更改到本地仓库
git remote add origin https://xxxxxxx/xxx.git --添加远程git仓库
git push -u origin master --提交代码到远程master分支

 

git基本命令

标签:git add   color   pre   提交   本地仓库   push   目录   http   remote   

原文地址:http://www.cnblogs.com/gaocong/p/6047006.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!