From 2feaf15b21929e9ce89fc8ffa788a4e73a431c3e Mon Sep 17 00:00:00 2001 From: Zsolt Kovari Date: Wed, 2 Aug 2023 08:47:13 +0200 Subject: [PATCH] Add script to quickly checkout main and pull --- co_main.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 co_main.sh diff --git a/co_main.sh b/co_main.sh new file mode 100755 index 000000000..5a9d3a323 --- /dev/null +++ b/co_main.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# exit when any command fails +set -e + +if git checkout main; then + git pull +fi \ No newline at end of file