From bc74cf3b0c507062509a6cebf190445e28fc9af3 Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Tue, 5 Dec 2023 21:51:41 -0700 Subject: [PATCH] added local support for ginit --- ginit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ginit b/ginit index f1fbfb4..c73ad49 100755 --- a/ginit +++ b/ginit @@ -1,8 +1,11 @@ #!/bin/zsh git init -gh repo create git stage -A git commit -m "init commit" -git push --set-upstream origin main + +if [[ $1 != "-l" || $1 != "--local" ]]; then + gh repo create + git push --set-upstream origin main +fi