2017-07-18 2 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早送り1回コミット

feature/QOL-1649-install-chromeは、コミットを1つ上に移動して9aeb07eにします。

私はcherry pickを試みましたが、そのコミットの "コピー"を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 pull'の代わりに 'git mff'を実行します。 mffが失敗すると、私はマージするかリベースするかを調べます。 mffが成功すれば、それはほとんどいつも私が望んでいたものです。 – torek

関連する問題