31 lines · 816 B · Shell
RawDownload
#!/bin/bashset -eu -o pipefail git init -q git checkout -q -b maingit commit -q --allow-empty -m c1git branch dt1git branch d1 mkdir -p .git/refs/remotes/origin cp .git/refs/heads/main .git/refs/remotes/origin/cp .git/refs/heads/main .git/refs/d1 echo "ref: refs/remotes/origin/main" > .git/refs/remotes/origin/HEADecho "notahexsha" > .git/refs/broken echo "ref: refs/heads/multi-link-target1" > .git/refs/multi-linkecho "ref: refs/tags/multi-link-target2" > .git/refs/heads/multi-link-target1echo "ref: refs/remotes/origin/multi-link-target3" > .git/refs/tags/multi-link-target2git rev-parse HEAD > .git/refs/remotes/origin/multi-link-target3  echo "ref: refs/loop-b" > .git/refs/loop-aecho "ref: refs/loop-a" > .git/refs/loop-b git tag t1git tag -m "tag object" dt1 git pack-refs --all --prune

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