pull down to refresh
interactive rebase is my jam
reply
reply
I use it a lot when auto squashing fixup commits, which depends on having multiple commits to squash into.
it definitely helps point out when you muddy the waters on commits, when things should be broken up.
reply
reply
wooo
are you connecting via api or subscription?
There's no inverse (child of tip) of HEAD~1 (parent of tip) because there can be many children. But if you give git a descendant to move toward, it can do it.
git config --global alias.child '!f() { if test "$#" -gt 0; then target="$1"; else target="@{-1}"; fi; next="$(git rev-list --reverse --first-parent HEAD.."$target" | sed -n "1p")"; test -n "$next" && git switch --detach "$next" || { echo "no next commit toward $target"; return 1; }; }; f'reply
What kind of cookie do I get for interactively rebasing 6k lines? It's at least somewhat pleasurable having bots to help:
Also, interactive rebases are a surprisingly (to me) great way to interrogate overall structure. In hindsight it's obvious - looking at smaller units of code always you to spot more - but it's a new to me, Mr. Monolith Career-Without-Reviewers, III.