Created
August 18, 2024 00:21
-
-
Save kingdonb/008d287fc24b5d46b8d9d3254c58ecb8 to your computer and use it in GitHub Desktop.
zsh git aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is Git's per-user configuration file. | |
[user] | |
# name = Your name here | |
# email = [email protected] | |
# signingkey = ABCD1234... | |
name = Work name | |
email = [email protected] | |
signingkey = 1234FEDC... | |
[push] | |
default = simple | |
[gpg] | |
program = gpg | |
[alias] | |
l = log --date-order --date=iso --graph --full-history --all --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s' | |
co = checkout | |
[core] | |
editor = /opt/homebrew/bin/vim | |
[pull] | |
ff = only | |
[merge] | |
ff = false | |
[init] | |
defaultBranch = main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% alias|grep git | |
ga='git add' | |
gap='git add -p' | |
gc='git commit -v -s -S' | |
gcm='git commit -v -s -S -m' | |
gd='git diff' | |
gdc='git diff --cached' | |
gl='git l' | |
gmf='git merge --ff-only' | |
gp='git push' | |
gpo='git push origin' | |
grc='git rebase --continue' | |
gs='git status' | |
gsd='git stash drop' | |
gsl='git stash list -u' | |
gtd='git tag -d' | |
qgit=git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment