From 3c17c65a20fe8259b255421dc36e813d635450b9 Mon Sep 17 00:00:00 2001 From: tcsenpai Date: Wed, 20 Mar 2024 12:59:11 +0100 Subject: [PATCH] git add . && git committ -a -m $1 && trunk checks && recommit && push (requires trunk but works without too) --- bin/gitup | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/gitup diff --git a/bin/gitup b/bin/gitup new file mode 100755 index 0000000..f94c09d --- /dev/null +++ b/bin/gitup @@ -0,0 +1,16 @@ +#!/bin/bash +echo $1 +cd $(pwd) +echo "Adding everything to the commit..." +git add . +git commit -a -m "$1" +echo "Upgrading and executing trunk..." +trunk upgrade || echo "trunk upgrade failed" +trunk check || echo "trunk check failed" +trunk fmt || echo "trunk fmt failed" +echo "Final commit (if any)..." +git commit -a -m "Post trunk commit" +echo "Pushing..." +git push +echo "Done!" +