blob: 9736c4cdfecefc2bdfe847a4ac7f25f89926a612 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
git clone "$1"
cd "$(basename "$1" .git)" || exit
git remote add upstream "$2"
if ! git checkout fly; then
git branch fly
git checkout fly
git push --set-upstream origin fly
fi
|