From f522fb4f17114d48e2de5b60a9b34dea350e77cb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 31 Oct 2026 11:01:59 +0200 Subject: feat!: Initial setup --- scripts/checkout | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/checkout (limited to 'scripts/checkout') diff --git a/scripts/checkout b/scripts/checkout new file mode 100755 index 0000000..26a36b0 --- /dev/null +++ b/scripts/checkout @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ -z "$1" ] +then + printf 'Repository: ' + read + set "$REPLY" +fi + +if [ -z "$2" ] +then + printf 'Branch : ' + read + set "$1" "$REPLY" +fi + +cd "$1" && \ +git symbolic-ref HEAD refs/heads/"$2" -- cgit v1.3.1-23-gd82d