diff options
author | xyz <gky44px1999@gmail.com> | 2021-07-20 10:16:09 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-07-20 10:16:09 -0700 |
commit | be242dddf8aab4a62cf9a2772045d005010cfc3b (patch) | |
tree | bbe2d7d7b22b48e19309e3ea65ac6b45f2d772ae /.local | |
parent | 6005376295a694dfd9d1f0c0cfa5dabb2476e499 (diff) |
git fork automation script
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/gitfork | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/gitfork b/.local/bin/gitfork new file mode 100755 index 00000000..cefc4f68 --- /dev/null +++ b/.local/bin/gitfork @@ -0,0 +1,8 @@ +#!/bin/sh + +git clone "$1" +cd "$(basename "$1" .git)" || exit +git remote add upstream "$2" +git branch fly +git checkout fly +git push --set-upstream origin fly |