2017-07-18 129 views
1
* 9dbd857 (hotfix-correct-java-jdk-path, feature/add-ansible-galaxy-requirements-file) requirements.yml: adds maven and nodejs requirements 
* 1643619 (QOL-1640-enable-vpc-peering) roles/ansible-linux-commons: change value of hostname in cloud-init 
* b5fd2a4 roles/bamboo-agent: add bitbucket ssh host key to /etc/ssh/ssh_known_hosts 
* d5cc1f7 vpc cfn template: produce outputs conditionally 
* 3b87efe vpc cfn template: use csv for subnet/AZ mapping 
* 2e93096 roles/bamboo-agent: Install chrome on agents 
* 9aeb07e roles/bamboo-agent: install chromium browser 
* 89e852d (HEAD -> feature/QOL-1649-install-chrome) README: display the current directory structure of inventories 
* 1f55c4b inventories/test: define root volume size 
* 07d902e bamboo-ec2 cfn: specify root volume size 

这是我的(最近的)历史。git fast-forward one commit

我想feature/QOL-1649-install-chrome向上移动一个提交到9aeb07e

我尝试了樱桃采摘,但后来我得到一个“复制”的承诺feature/QOL-1649-install-chrome分支。但是我想(我认为)是快进的。

回答

2
git checkout feature/QOL-1649-install-chrome 
git merge --ff-only 9aeb07e 

git reset --hard 9aeb07e 

,而不是合并。

3

你可以git reset它,但为了一般的安全和清洁,我更喜欢使用git merge --ff-only。要使用它,检查出的分支,你想快进(你已经),然后运行git merge --ff-only <commit-hash>

git merge --ff-only 9aeb07e 

我经常说我做了它的别名,git mff(合并快进)使用此命令。

+0

谢谢。我尝试了'git reset'并且它能够工作,但'git merge'的[安全感]让我更开心! –

+0

对我来说也是一样 - 我运行'git fetch',然后'git mff'而不是'git pull'。如果这个mff失败了,我会看看我是想合并还是重新绑定。如果mff成功,它几乎总是我想要的。 – torek