Summary Files Commits Branches @commit @diff @stats
path: root / scripts / checkout
diff options
context:
space:
mode:
Commitf522fb4f17114d48e2de5b60a9b34dea350e77cb (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-10-31 11:01:59 +0200
Committer
 Syndamia <kamen@syndamia.com>
2026-10-31 11:10:51 +0200
Files949be2ee14d89675cd8723c6da3a91e30f32d9a9 /scripts/checkout
cli-f522fb4f17114d48e2de5b60a9b34dea350e77cb.tar
cli-f522fb4f17114d48e2de5b60a9b34dea350e77cb.tar.gz
cli-f522fb4f17114d48e2de5b60a9b34dea350e77cb.zip
feat!: Initial setup
1 files changed, 18 insertions, 0 deletions
-rwxr-xr-xscripts/checkout18
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"