6 lines
169 B
Bash
Executable file
6 lines
169 B
Bash
Executable file
#!/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
|