summaryrefslogtreecommitdiffhomepage
path: root/src/blog/nvim-ts/git-rebase.gsp
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-14 18:10:22 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-14 18:10:22 +0100
commitea77956c0224d9f9997d60e91642a4e255750f5b (patch)
tree7d47222427808b35f9fe07fb5e3249d08fadf109 /src/blog/nvim-ts/git-rebase.gsp
parentd31314638a4499ce36def937b61d2069f496eaaa (diff)
Add a new blog post
Diffstat (limited to 'src/blog/nvim-ts/git-rebase.gsp')
-rw-r--r--src/blog/nvim-ts/git-rebase.gsp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/blog/nvim-ts/git-rebase.gsp b/src/blog/nvim-ts/git-rebase.gsp
new file mode 100644
index 0000000..d41262a
--- /dev/null
+++ b/src/blog/nvim-ts/git-rebase.gsp
@@ -0,0 +1,34 @@
+@span .fn {-pick} @span .var {-d620266} Fix various typos
+@span .fn {-pick} @span .var {-59fa2b6} Add new blog post
+@span .fn {-pick} @span .var {-4c45214} Fix another typo
+
+@span .cmt {-# Rebase 10c3013..4c45214 onto 10c3013 (3 commands)}
+@span .cmt {-#}
+@span .cmt {-# Commands:}
+@span .cmt {-# p, pick <commit> = use commit}
+@span .cmt {-# r, reword <commit> = use commit, but edit the commit message}
+@span .cmt {-# e, edit <commit> = use commit, but stop for amending}
+@span .cmt {-# s, squash <commit> = use commit, but meld into previous commit}
+@span .cmt {-# f, fixup [-C | -c] <commit> = like "squash" but keep only the previous}
+@span .cmt {-# commit's log message, unless -C is used, in which case}
+@span .cmt {-# keep only this commit's message; -c is same as -C but}
+@span .cmt {-# opens the editor}
+@span .cmt {-# x, exec <command> = run command (the rest of the line) using shell}
+@span .cmt {-# b, break = stop here (continue rebase later with 'git rebase --continue')}
+@span .cmt {-# d, drop <commit> = remove commit}
+@span .cmt {-# l, label <label> = label current HEAD with a name}
+@span .cmt {-# t, reset <label> = reset HEAD to a label}
+@span .cmt {-# m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]}
+@span .cmt {-# create a merge commit using the original merge commit's}
+@span .cmt {-# message (or the oneline, if no original merge commit was}
+@span .cmt {-# specified); use -c <commit> to reword the commit message}
+@span .cmt {-# u, update-ref <ref> = track a placeholder for the <ref> to be updated}
+@span .cmt {-# to this position in the new commits. The <ref> is}
+@span .cmt {-# updated at the end of the rebase}
+@span .cmt {-#}
+@span .cmt {-# These lines can be re-ordered; they are executed from top to bottom.}
+@span .cmt {-#}
+@span .cmt {-# If you remove a line here THAT COMMIT WILL BE LOST.}
+@span .cmt {-#}
+@span .cmt {-# However, if you remove everything, the rebase will be aborted.}
+@span .cmt {-#}