f4a 3a1 However, a long lived topic branch may do this many times. If any of you read the Linux kernel mailing list, you may remember Linus complaining about these “useless merges” when a subsystem maintainer asked him to pull a branch. So if we got rid of these as we made them
git rebase -i --autosquash \ HEAD~5 fixup! <another commit message> squash! <another commit message> These are automatically set to fixup/squash when rebasing interactively then
moving from feature_subtraction_polishe 818f033 HEAD@{2}: checkout: moving from feature_division_polished t 57d0bf6 HEAD@{3}: commit: Removing subtraction from the division li cb2d322 HEAD@{4}: checkout: moving from feature_division to feature e650f37 HEAD@{5}: checkout: moving from master to feature_division 369adba HEAD@{6}: checkout: moving from feature_division to master e650f37 HEAD@{7}: rebase -i (continue): Fixed a typo in a tested va 3c9306f HEAD@{8}: cherry-pick 09b08e4 HEAD@{9}: checkout: moving from feature_division to 09b08e4 9fc18b5 HEAD@{10}: checkout: moving from feature_division to 9fc18b 9fc18b5 HEAD@{11}: commit: Fixed a typo in a tested value of divisi d5ef5f0 HEAD@{12}: checkout: moving from feature_division_polished cb2d322 HEAD@{13}: commit (amend): Added subtract feature 6a795b8 HEAD@{14}: rebase: Added subtract feture 369adba HEAD@{15}: checkout: moving from feature_division_polished d5ef5f0 HEAD@{16}: checkout: moving from master to feature_division 369adba HEAD@{17}: checkout: moving from feature_division_polished d5ef5f0 HEAD@{18}: checkout: moving from feature_division to featur d5ef5f0 HEAD@{19}: checkout: moving from feature_division_polished d5ef5f0 HEAD@{20}: checkout: moving from d5ef5f0e74c56bd678ea1d504c d5ef5f0 HEAD@{21}: checkout: moving from 818f033c4ae7f26b2b29e90494
n - do not stage this hunk a - stage this and all the remaining hunks in the file d - do not stage this hunk nor any of the remaining hunks in the file g - select a hunk to go to / - search for a hunk matching the given regex j - leave this hunk undecided, see next undecided hunk J - leave this hunk undecided, see next hunk k - leave this hunk undecided, see previous undecided hunk K - leave this hunk undecided, see previous hunk s - split the current hunk into smaller hunks e - manually edit the current hunk ? - print help
a tree, we must first create the index, or staging area. $ git update-index --add --cacheinfo 100644 \ 053a0094e47bd27c88ee17e205f42beb974791aa greeting.txt $ git status (shows greeting.txt)