Skip to content

Instantly share code, notes, and snippets.

@sergiosusa
Last active July 21, 2022 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiosusa/0dfd40942d56f1b03144b5402e8d44b7 to your computer and use it in GitHub Desktop.
Save sergiosusa/0dfd40942d56f1b03144b5402e8d44b7 to your computer and use it in GitHub Desktop.
ADM - Seat:Code
# This is Git's per-user configuration file.
[user]
name = ---
email = ---@----
[alias]
a = add
s = status
b = branch
c = checkout
cm = commit -m
pr = pull --rebase
la = log-tree --all
log-tree = log --graph --pretty=line
ri = rebase -i
rc = !git reset --soft HEAD~$1 && :
# REQUIRED fzf
fixup = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
# Seat:Code - ADM
fd = ri origin/develop
feature = !git stash && git c develop && git pull origin develop && git c -tb $1 && git stash pop && :
cwip = !git a . && git commit -m "WIP"
cpwip = !git a --patch && git commit -m "WIP"
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
frag = magenta bold
meta = yellow bold
new = green bold
old = red bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[pretty]
line = %C(auto)%h %s%d %C(blue)<%an>%C(green) %ar
simple = %C(auto)%h %s
[rerere]
enabled = true
[rebase]
autosquash = true
autostash = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment