7 lines
169 B
Plaintext
7 lines
169 B
Plaintext
|
#!/bin/sh
|
||
|
# Creates a bare clone parallel to the current repository
|
||
|
p="$(basename "$(git rev-parse --show-toplevel)")"
|
||
|
builtin cd ..
|
||
|
git clone --mirror $p
|
||
|
builtin cd $p
|