summaryrefslogtreecommitdiff
path: root/.local/bin/development/gitpush
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-01-24 10:35:59 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-01-24 10:35:59 +0530
commit18507fd21b7a7709133d8f3049c683e1abffcda2 (patch)
treed43bc141b2e588300e639bdb4f004ad6945e6081 /.local/bin/development/gitpush
parente02304f014645a01ef6cdd40276997dea58504d9 (diff)
jupyter update
Diffstat (limited to '.local/bin/development/gitpush')
-rwxr-xr-x.local/bin/development/gitpush5
1 files changed, 2 insertions, 3 deletions
diff --git a/.local/bin/development/gitpush b/.local/bin/development/gitpush
index 0af8e20..7774a7b 100755
--- a/.local/bin/development/gitpush
+++ b/.local/bin/development/gitpush
@@ -8,13 +8,12 @@ push_to_remote() {
esac
git add --all
- git commit
- git push -u origin
+ git commit && git push -u origin
}
[ -z "$1" ] && { push_to_remote; exit; }
for dir in "$@"; do
- cd "$dir" || exit 1
+ cd "$dir" || exit
push_to_remote
done