git rebase - deptno/deptno.github.io GitHub Wiki
git-rebase
μ»€λ° ν΄μκ° λ³κ²½λμ§ μλ κ²½μ°
rebase -i @~n μ ν΅ν΄ λ³κ²½μμ μ»€λ° λ©μμ§λ§μ λ³κ²½νλ©΄ commit hash λ λ³κ²½λμ§ μλλ€
error
$ git rebase --abort
warning: could not read '.git/rebase-merge/head-name': No such file or directory
$ git rebase --quit
$ git rebase --onto TAG @~ @ # νΉμ νκ·Έ μμΉμ ν€λ μ»€λ° νλλ₯Ό μ΄λμν΄, cherry pick κ³Ό κ°μ
$ git rebase --onto F D
# Before After
# A---B---C---F---G (branch) A---B---C---F---G (branch)
# \ \
# D---E---H---I (HEAD) E---H---I (HEAD)
#
$ git rebase --onto F D H
# Before After
# A---B---C---F---G (branch) A---B---C---F---G (branch)
# \ \
# D---E---H---I (HEAD) E---H (HEAD)