Skip to content

Instantly share code, notes, and snippets.

@untalsanders
Last active September 3, 2021 15:08
Show Gist options
  • Save untalsanders/f6b2916998c9c811b4cb36b4257f6840 to your computer and use it in GitHub Desktop.
Save untalsanders/f6b2916998c9c811b4cb36b4257f6840 to your computer and use it in GitHub Desktop.
Git Config

Git Config

[alias]
	br = branch
	co = checkout
	ci = commit -S -S
	last = log -1 HEAD
	lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(dim green)(%G?)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
	ra = remote add
	st = status
	stats = shortlog -sn --all --no-merges
	sw = switch
	rl = reflog
	rv = remote -v
	ru = remote set-url
	unstage = reset HEAD --
[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true
[core]
	autocrlf = input
	fileMode = false
[commit]
	gpgSign = true
[credential]
	helper = /usr/lib/git-core/git-credential-libsecret
[init]
	defaultBranch = master
[pull]
	ff = only
[tag]
	forceSignAnnotated = true
[user]
	name = Sanders Gutiérrez
	email = ing.sanders@gmail.com
	signingkey = asdfadsfasdfasdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment