git/gitLab

gitlab安装:http://www.360doc.com/content/15/0603/14/21631240_475362133.shtml

http://www.cnblogs.com/wintersun/p/3930900.html

基本实战:http://www.bootcss.com/p/git-guide/

git 使用规范:http://www.ruanyifeng.com/blog/2015/08/git-use-process.html

<<<<<-------------------

本地一个工程初次加入gitlab

gitlab上创建项目,获得地址;

进入工程根目录:

git init

touch README.md

git commit -m "first commit"

git remote add origin git@git.letv.cn:yangqing1/lingshu_data.git

git push -u origin master

 

创建分支:

创建一个叫做“feature_x”的分支,并切换过去:
git checkout -b feature_x
切换回主分支:
git checkout master
再把新建的分支删掉:
git branch -d feature_x
除非你将分支推送到远端仓库,不然该分支就是 不为他人所见的
git push origin <branch>

-------------------------------->>>>>>

 

svn : http://ylq365.iteye.com/blog/1955291

todo

git checkout -b

CentOS安装GitLab

http://www.centoscn.com/image-text/install/2015/0320/4929.html

 

git理解:http://nvie.com/posts/a-successful-git-branching-model/

 

git BOOK:http://git.oschina.net/progit/

posted @ 2015-12-20 10:47  8899man  阅读(193)  评论(0编辑  收藏  举报