git rebase学习理解

在学习git用法时候,看到rebase,就测试了下。
git clone git@newgit.op.ksyun.com:LIHECHAO/test-rebase.git
cd test-rebase/
git checkout master
echo c1 >c1.txt
git add c1.txt
git commit -m “c1”
echo c2 > c2.txt
git add c2.txt
git commit -m “c2”
git log
git log –pretty=tformat: –numstat

Created with Raphaël 2.1.2 origin c0a13d-c1 66a7eb-c2 master

git branch mywork
git branch

Created with Raphaël 2.1.2 origin c0a13d-c1 66a7eb-c2 branch now master mywork yes no
Created with Raphaël 2.1.2 Start My Operation Yes or No? Good idea catch something... End Stuff My Subroutine yes no yes no

echo c3 >c3.txt
git add c3.txt
git commit -m “c3”
echo c4 >c4.txt
git add c4.txt
git commit -m “c4”
git log
git log –pretty=tformat: –numstat
git checkout mywork
git branch
echo c5 >c5.txt
git add c5.txt
git commit -m “c5”
echo c6 >c6.txt
git add c6.txt
git commit -m “c6”
git log
git log –pretty=tformat: –numstat
git checkout master
git branch
git checkout mywork
git branch
git log
git log –pretty=tformat: –numstat
git rebase master
git branch
git log
git log –pretty=tformat: –numstat

Created with Raphaël 2.1.2 start c0a13d-c1 66a7eb-c2 ef1c97-c3 b24c7c-c4 816c1d-c5p 32f1e7-c6p mywork
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值