23 lines · 484 B · Shell
RawDownload
#!/bin/bashset -eu -o pipefail git init -q empty_oid=$(git hash-object -w --stdin </dev/null)symlink_target=$(echo -n 'X' | git hash-object -w --stdin) git update-index --index-info <<-EOF100644 $empty_oid	FILE_X100644 $empty_oid	FILE_x100644 $empty_oid	file_X100644 $empty_oid	file_x100644 $empty_oid	D/B100644 $empty_oid	D/C100644 $empty_oid	d100644 $empty_oid	X120000 $symlink_target	x120000 $symlink_target	link-to-XEOF git commit -m "init"git checkout -f HEAD;

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