summary refs log tree commit diff
path: root/.local/share/navi/cheats/robertgzr__cheats/git.cheat
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-07-29 23:52:39 +0200
committerRobert Günzler <r@gnzler.io>2021-07-29 23:52:39 +0200
commite85d6410af991ec81b847541a48026ae973cde7e (patch)
treef286d3cefa8aac03729f1389fad7803e85152674 /.local/share/navi/cheats/robertgzr__cheats/git.cheat
parent5ffcd34f5649a97a966e3dcaafebf2ac87f7897e (diff)
add navi cheats
Diffstat (limited to '.local/share/navi/cheats/robertgzr__cheats/git.cheat')
-rw-r--r--.local/share/navi/cheats/robertgzr__cheats/git.cheat9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/share/navi/cheats/robertgzr__cheats/git.cheat b/.local/share/navi/cheats/robertgzr__cheats/git.cheat
new file mode 100644
index 0000000..01bccce
--- /dev/null
+++ b/.local/share/navi/cheats/robertgzr__cheats/git.cheat
@@ -0,0 +1,9 @@
+% git
+
+# checkout branch
+git checkout <branch> && git status
+
+$ branch: git branch -a --format='%(refname)' \
+	| cut -d' ' -f1 \
+	| sed -e 's#^refs/##' -e 's#^remotes/##' -e 's#^heads/##' \
+	| sort