0
0

More than 3 years have passed since last update.

mergeとrebase完全理解した

Last updated at Posted at 2020-10-10

Git MERGE vs REBASE のまとめ

スクリーンショット 2020-10-10 17.56.01.png

masterブランチ

master.html
m1
m2
m3

masterブランチ ログ

m3
m2
m1

featureブランチ

master.html
m1
m2
feature.html
f1
f2

featureブランチ ログ

f2
f1
m2

最終的なファイル

master.html
m1
m2
m3
feature.html
f1
f2

git marge --squash feature

git add .
git commit -m "marge feature and master"
marge feature and master
m3
m2
m1

git rebase feature

f2
f1
m3
m2
m1
0
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
0
0