2 # https://stackoverflow.com/a/62524752/159695
9 git init
--bare "${name}"
11 git config remote.origin.url
"$url"
12 git config remote.origin.fetch
'+refs/heads/*:refs/remotes/origin/*'
15 firstCommit
=$
(git rev-list
--all --max-parents=0 --date-order --reverse |
head -n1)
16 git branch bare-dummy
$firstCommit
17 git symbolic-ref HEAD refs
/heads
/bare-dummy