24 lines · 516 B · Shell
RawDownload
#!/bin/bashset -eu -o pipefail git init -qgit config commit.gpgsign false 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;