diff options
Diffstat (limited to '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}' |