From 789a7f1dee723a1eab7d5c5b42b0327f053d3a88 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 2 Nov 2023 08:48:45 +0800 Subject: Update git cheat --- git.cheat | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/git.cheat b/git.cheat index 07c288f..a32b322 100644 --- a/git.cheat +++ b/git.cheat @@ -6,4 +6,11 @@ git commit --fixup # Rebase git rebase -i +# Checkout +git checkout + +# Delete a branch +git branch -d + $ commit_id: git log --pretty=reference --- --column 1 --delimiter '\s' +$ branch: git branch | awk '{print $NF}' -- cgit v1.2.3