Skip to content

Instantly share code, notes, and snippets.

@dhigginbotham
Created June 30, 2025 13:25
Show Gist options
  • Save dhigginbotham/c0af7d78ea91e0bf022a2126eb27b4f5 to your computer and use it in GitHub Desktop.
Save dhigginbotham/c0af7d78ea91e0bf022a2126eb27b4f5 to your computer and use it in GitHub Desktop.
[user]
email = [email protected]
name = David Higginbotham
[core]
mergeoptions = --no-commit
[alias]
pff = pull --ff-only
quick = log -1 --format='%h - %an - %ad - %s' --date=local --name-status
squash = merge --squash
blog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
bdiff = show --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --name-only --date=relative origin/master..HEAD
files = git show --pretty=\"format:\" --name-only
hist = show --pretty=\"format:\" --name-only
ci = commit
co = checkout
st = status
mom = !git fetch && git merge origin/master
rom = !git fetch && git reset --hard origin/master
pom = push origin master
ammend = commit --amend -C HEAD
ll = log --stat --abbrev-commit
pob = !git fetch && git merge origin/$1 && git push
z = reset --soft HEAD^
c = !git add . --all && git commit -m
[mergeo]
commit = no
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = upstream
[init]
defaultBranch = master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment