summary refs log tree commit diff
path: root/.local/share/navi/cheats/robertgzr__cheats/git.cheat
diff options
context:
space:
mode:
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