Skip to content

Instantly share code, notes, and snippets.

@ImMyst
Created March 14, 2022 13:58
Show Gist options
  • Save ImMyst/35d33c86cafd23089824156e0d1dd31a to your computer and use it in GitHub Desktop.
Save ImMyst/35d33c86cafd23089824156e0d1dd31a to your computer and use it in GitHub Desktop.
Git config and aliases
# This is Git's per-user configuration file.
[user]
name = ImMyst
email = titouan.galvani@yeap.ai
[github]
user = immyst
[color]
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
ui = auto
[alias]
a = add .
d = diff
s = status
ss = status --short
co = checkout
ci = commit
ps = push origin HEAD
pl = pull
cb = checkout -b
psf = push origin HEAD --force
aie = "commit --no-edit --amend"
old = log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --all
llog = log --graph --name-status --pretty=format:\"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset\" --date=relative
[core]
editor = vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment