LoginSignup
2
0

More than 5 years have passed since last update.

git merge --no-ff

Posted at

ブランチの履歴を統合する場合、mergeとrebaseがある。

merge

git merge branch_name
とすることで、branch_nameをfast-fowardで取り込むことができる。
fast-forwardとは、両方の変更を取り込んだマージコミットが作成されます。

ただ、何をマージしたか明示的に示しておきたい場合、
git merge --no-ff branch_name
とすれば、ブランチがのこったままになります。

--no-ff > no fast forward 、fast forwardをしないようにしてマージします

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0