「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
git pull --rebase <remote>
git pull --rebase <remote>
git rebase -i <commit> git rebase --interactive <commit>
$ git checkout master $ git merge bugfix
$ git checkout bugfix $ git rebase master
git rebase <base-branch>
git rebase <base-branch> <branch>
git pull --rebase <remote>
現在のbranchにある<commit>以降のcommit(commitとmerge commitを含まない)を取り上げて、エディタが立ち上がる。
git rebase -i <commit> git rebase --interactive <commit>
以下のコマンドが使える。
git commit --amend
・・・
reset --soft
edit
(特に、複数人が並行して同じブランチ上で作業をする際には、)
履歴が複雑化する原因になる
不要なコミットが入り込むことがないので、直感的かつシンプルに履歴を保つ