github基础命令

github被zf断断续续的墙掉,只能多试几次;习惯用svn了,作为git新手,把svn跟git命令对比了一下,瞬间发现好方便记忆了;

(1)获取代码仓库克隆:https://github.com/cobbxia/cppcheckII.git

这个命令相当于svn co $codebase

(2)增加新文件到代码仓库中

git add *

相当于svn add

(3)增加注释 
git commit -m "commit"

相当于svn commit

(4)提交到远程仓库git push -u origin master

相当于svn ci


(5)更新git pull

相当于svn update

总体而言还是感觉github更好用一些

原文地址:https://www.cnblogs.com/laodageblog/p/3843212.html