Skip to content

Instantly share code, notes, and snippets.

View merinhunter's full-sized avatar

Sergio Merino Hernández merinhunter

View GitHub Profile
@merinhunter
merinhunter / .gitconfig
Last active August 15, 2022 17:24
Custom configuration file for Git
[alias]
mr = !sh -c 'git fetch origin merge-requests/$1/head:mr-$1 && git checkout mr-$1' -
upmr = !sh -c 'git fetch upstream merge-requests/$1/head:upmr-$1 && git checkout upmr-$1' -
lt = log --oneline --graph --decorate --all
log2 = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
log3 = log --pretty=format:\"%h %ad | %s%d [%an]\" --name-status --date=short
log4= log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ca = commit --all
caa = commit --all --amend
co = checkout

Keybase proof

I hereby claim:

  • I am merinhunter on github.
  • I am merinhunter (https://keybase.io/merinhunter) on keybase.
  • I have a public key ASA5XB9FMzreh80yWZ5arUXS45U8XyRZb4KIZUdCPX73dQo

To claim this, I am signing this object: