git pull --rebase



$ git push bit 1.8-subchannels
To git@bitbucket.org:cms.git
! [rejected] 1.8-subchannels -> 1.8-subchannels (fetch first)
error: failed to push some refs to 'git@bitbucket.orgcms.git'
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

$ git pull bit 1.8-subchannels 
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 4), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.
From bitbucket.org:cms
* branch 1.8-subchannels -> FETCH_HEAD
e1faddc..a14be49 1.8-subchannels -> bit/1.8-subchannels
Merge made by the 'recursive' strategy.
app/controllers/subchannels_controller.rb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

$ git log
commit c9f151b41286ac10656dcb8177abee1
Merge: fee23b3 a14be49
Author: w
Date: Tue Apr 12 11:20:31 2016 +0800

Merge branch '1.8-subchannels' of bitbucket.org:cms into 1.8-subchannels

commit fee23b36ead5ad8991097204001954b
Author: w
Date: Tue Apr 12 11:20:03 2016 +0800

add version to 1.2 subchannel

commit a14be49f66a5865fc6253d9f4ae655b
Author: R
Date: Tue Apr 12 10:48:16 2016 +0800

Fix else if syntax error

commit e1faddc216081deea2c7e80657369732c
Author: w
Date: Mon Apr 11 18:30:16 2016 +0800

add version to subchannel



$ git reset --hard fee23b36ead5ad899109720400
HEAD is now at fee23b3 add version to 1.2 subchannel

$ git pull --rebase bit 1.8-subchannels

$ git push bit 1.8-subchannels 
Counting objects: 68, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.18 KiB | 0 bytes/s, done.
Total 12 (delta 8), reused 0 (delta 0)
remote: 
remote: Create pull request for 1.8-subchannels:
remote: https://bitbucket.orgcms/pull-requests/new?source=1.8-subchannels&t=1
remote: 
To git@bitbucket.org:cms.git
a14be49..a76e5cb 1.8-subchannels -> 1.8-subchannels


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值