Initial commit
This commit is contained in:
commit
8763b7faf2
9 changed files with 86 additions and 0 deletions
13
git-shell-commands/configure
vendored
Executable file
13
git-shell-commands/configure
vendored
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 3 ]; then
|
||||
echo "Usage: configure <path_to_repository> <config_key> <config_value>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Enter description: "
|
||||
read INPUT
|
||||
|
||||
REPO_PATH="/srv/git/$1"
|
||||
cd "$REPO_PATH" && git config --local "$2" "$3"
|
||||
echo "Wrote '$INPUT' into $REPO_PATH/description"
|
Loading…
Add table
Add a link
Reference in a new issue