bin/gib

9 lines
271 B
Bash
Executable File

#!/bin/bash
# Intialize git repos on my own server
ssh git@skoskapet "cd opfez && mkdir $1 && cd $1 && git init --bare"
echo -n "Do you want to add this repo as origin? (y/N) " && read answer && \
[[ $answer == "y" ]] && git remote add origin git@skoskapet:~/opfez/$1