Skip to content

Instantly share code, notes, and snippets.

View berkgaut's full-sized avatar

Boris Berkgaut berkgaut

  • Stockholm, Sweden
View GitHub Profile
@berkgaut
berkgaut / .gitconfig
Last active January 29, 2025 09:53
gitconfig for multiple personalities
## Different configurations for personal, open-source and work projects
[includeIf "gitdir:~/devel/personal/"]
path = .gitconfig-personal
[includeIf "gitdir:~/devel/opensource/"]
path = .gitconfig-personal
[includeIf "gitdir:~/devel/some-company/"]
path = .gitconfig-some-company
@berkgaut
berkgaut / .gitconfig
Last active January 29, 2025 09:52
gitconfig with CLI-friendly aliases
[alias]
co = checkout
br = branch --sort=-committerdate
camend = commit --amend --reuse-message=HEAD
st = status
ll = log --pretty=format:\"%h - %an, %ad: %s\" -10
pushnew = push --set-upstream origin HEAD
pushfwl = push --force-with-lease
resethd = reset HEAD~1