diff options
author | Guangxiong Lin <[email protected]> | 2023-11-02 08:48:45 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-11-02 08:48:45 +0800 |
commit | 789a7f1dee723a1eab7d5c5b42b0327f053d3a88 (patch) | |
tree | 1c06c7b8cd7d1eae36d92a31c9ff39f5920b2527 | |
parent | 96cdabea475bacda9a24f24ec88427d13f976806 (diff) | |
download | navi-cheats-789a7f1dee723a1eab7d5c5b42b0327f053d3a88.tar.gz navi-cheats-789a7f1dee723a1eab7d5c5b42b0327f053d3a88.tar.bz2 navi-cheats-789a7f1dee723a1eab7d5c5b42b0327f053d3a88.zip |
Update git cheat
-rw-r--r-- | git.cheat | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -6,4 +6,11 @@ git commit --fixup <commit_id> # Rebase git rebase -i <commit_id> +# Checkout +git checkout <branch> + +# Delete a branch +git branch -d <branch> + $ commit_id: git log --pretty=reference --- --column 1 --delimiter '\s' +$ branch: git branch | awk '{print $NF}' |