blob: 20a7a80fdcf9f5cfb8577c69acf2b5a5f2239d7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/zsh
if [[ -z $1 ]]; then
echo "$(basename $0) <reponame>"
exit 1
fi
repo=$1
server="karif"
remotename="karif"
basepath=/srv/git/users/flo
ssh $server git init --bare $basepath/$repo
ssh $server touch $basepath/$repo/git-daemon-export-ok
git remote add $remotename ssh://${server}${basepath}/$repo
echo -n "Description: "
read description
ssh $server echo $description \> $basepath/$repo/description
echo -n "Branch to push: "
read branch
git push $remotename $branch
echo "All done."
|