17 lines · 597 B · Shell
RawDownload
#!/bin/bashset -eu -o pipefail git init -qgit config commit.gpgsign false git checkout -q -b commit1git commit -q --allow-empty -m commit1git checkout -q -b commit2 commit1git commit -q --allow-empty -m commit2git checkout -q -b commit3 commit2git commit -q --allow-empty -m commit3 git show-ref -s commit1 | git commit-graph write --no-progress --split=no-merge --stdin-commitsgit show-ref -s commit2 | git commit-graph write --no-progress --split=no-merge --stdin-commitsgit show-ref -s commit3 | git commit-graph write --no-progress --split=no-merge --stdin-commitsgit repack -adq

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t