+ av stack branch branch-1 + echo 'Contents of '\''A'\''' + git add a.txt + git commit -m 'Added A' [branch-1 5a870b680d2] Added A 1 file changed, 1 insertion(+) create mode 100644 a.txt + echo 'Contents of B' + git add b.txt + git commit -m 'Added B' [branch-1 1e77002484d] Added B 1 file changed, 1 insertion(+) create mode 100644 b.txt + echo 'Decide to split into two PRs' Decide to split into two PRs + echo 'Creating second branch' Creating second branch + av stack branch branch-2 + git --no-pager log -n 2 commit 1e77002484d6f971193a3c9e8d180ead4f1a7859 Date: Wed Oct 16 13:53:36 2024 -0700 Added B commit 5a870b680d2cf6fa11dd884c5e02fffed5f27d2e Date: Wed Oct 16 13:53:36 2024 -0700 Added A + echo 'Switching back to first branch' Switching back to first branch + av stack prev Checked out branch branch-1 + git --no-pager log -n 2 commit 1e77002484d6f971193a3c9e8d180ead4f1a7859 Date: Wed Oct 16 13:53:36 2024 -0700 Added B commit 5a870b680d2cf6fa11dd884c5e02fffed5f27d2e Date: Wed Oct 16 13:53:36 2024 -0700 Added A + echo 'Removing second commit from first branch' Removing second commit from first branch + git reset --hard HEAD~1 HEAD is now at 5a870b680d2 Added A + git --no-pager log -n 1 commit 5a870b680d2cf6fa11dd884c5e02fffed5f27d2e Date: Wed Oct 16 13:53:36 2024 -0700 Added A + echo 'Making a fixup' Making a fixup + echo 'Contents of A' + git add a.txt + git commit -m 'A Fixup' [branch-1 13cf5ac6402] A Fixup 1 file changed, 1 insertion(+), 1 deletion(-) + echo 'Checking status of branch-1' Checking status of branch-1 + git --no-pager log -n 2 branch-1 commit 13cf5ac64025747900744d2b1b1b3e4ef5d3f36e Date: Wed Oct 16 13:53:37 2024 -0700 A Fixup commit 5a870b680d2cf6fa11dd884c5e02fffed5f27d2e Date: Wed Oct 16 13:53:36 2024 -0700 Added A + echo 'Checking status of branch-2' Checking status of branch-2 + git --no-pager log -n 2 branch-2 commit 1e77002484d6f971193a3c9e8d180ead4f1a7859 Date: Wed Oct 16 13:53:36 2024 -0700 Added B commit 5a870b680d2cf6fa11dd884c5e02fffed5f27d2e Date: Wed Oct 16 13:53:36 2024 -0700 Added A + echo Restacking Restacking + av stack restack [?25l[?2004h ⣾ Restacking branch-2... * ⣾ branch-2 1e77002 │ * branch-1 13cf5ac │ * dev f047171  ⣽ Restacking branch-2...  * ⣽ branch-2 1e77002  ⣻ Restacking branch-2...  * ⣻ branch-2 1e77002  ⢿ Restacking branch-2...  * ⢿ branch-2 1e77002  ✓ Restack is done * ✓ branch-2 13cf5ac │ * branch-1 13cf5ac │ * dev f047171  [?2004l[?25h[?1002l[?1003l[?1006l+ echo 'Checking status of branch-1 - should have 2 commits: '\''Added A'\'' and '\''A fixup'\''' Checking status of branch-1 - should have 2 commits: 'Added A' and 'A fixup' + git --no-pager log -n 2 branch-1 commit 13cf5ac64025747900744d2b1b1b3e4ef5d3f36e Date: Wed Oct 16 13:53:37 2024 -0700 A Fixup commit 5a870b680d2cf6fa11dd884c5e02fffed5f27d2e Date: Wed Oct 16 13:53:36 2024 -0700 Added A + echo 'Checking status of branch-2 - should have 3 commits: '\''Added A'\'', '\''A fixup'\'' and '\''Added B'\''' Checking status of branch-2 - should have 3 commits: 'Added A', 'A fixup' and 'Added B' + git --no-pager log -n 3 branch-2 commit 13cf5ac64025747900744d2b1b1b3e4ef5d3f36e Date: Wed Oct 16 13:53:37 2024 -0700 A Fixup commit 5a870b680d2cf6fa11dd884c5e02fffed5f27d2e Date: Wed Oct 16 13:53:36 2024 -0700 Added A + echo 'But '\''Added B'\'' is missing!' But 'Added B' is missing!