摘要: 基本操作 1、git commit -m '':commit a file in stage 区别于git commit <files>|-a(将问文件从本地直接弄到stage区和history区) 2、git log: 提交历史 git log --decorate查看各个分支指向的commit对 阅读全文
posted @ 2017-11-20 17:29 CodingSwallow 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 在 Git 中整合来自不同分支的修改主要有两种方法:merge 以及 rebase。 merge: merge有两种方法,fast-forward(快速合并)和three-way merge(三方合并) 1、快速合并: 两个branch在一条线上,合并master和feature0只需要将maste 阅读全文
posted @ 2017-11-20 17:14 CodingSwallow 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 远程分支:远程跟踪分支remote branch是对远程分支状态的引用,是不能移动的,它会根据远程分支变化以及网络通信自动移动。Git服务器包含了远程分支master,在My Computer中的remote branch就是远程跟踪分支,是对git服务器里面master branch的引用,不可移 阅读全文
posted @ 2017-11-20 16:22 CodingSwallow 阅读(209) 评论(0) 推荐(0) 编辑