Initial commit
This commit is contained in:
commit
8763b7faf2
9 changed files with 86 additions and 0 deletions
10
git-shell-commands/create
Executable file
10
git-shell-commands/create
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: create <path_to_repository>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REPO_PATH="/srv/git/$1"
|
||||
mkdir -p "$REPO_PATH"
|
||||
cd "$REPO_PATH" && git init --bare
|
||||
echo "New bare git repo created at $REPO_PATH"
|
Loading…
Add table
Add a link
Reference in a new issue