summaryrefslogtreecommitdiff
path: root/.local/bin/gitfork
blob: e9b9d2a6d8f45616b2a90986c302500509408c90 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

git clone "$1"
cd "$(basename "$1" .git)" || exit 1
git remote add upstream "$2"
git branch fly
git checkout fly
git push --set-upstream origin fly