4 ms·
Curious what I might have missed that you all put in your `~/.gitconfig`
by schacon 2y ago
Curious what I might have missed that you all put in your `~/.gitconfig`
- wahnfrieden 2y ago.DS_Store *.swp
- infogulch 2y agoThat's .gitignore. GP is asking about what you have in your .gitconfig.
- Retr0id 2y agoYou can however put those in your global `core.excludesfile` path as defined in .gitconfig
- jmholla 2y agoIf that last one is vim, you probably actually want `*.sw?` as vim will create a new temporary file if you decided to edit anyway when one exists. It could clobber other tools' file endings, though.
- deleted 2y ago[deleted]
- tremon 2y agoThis is my global gitconfig (minus personal things like user.email etc): [core] pager = [pull] ff = only I don't want git to start a merge without my explicit request, hence the ff-only on git pull. Similarly, opening a pager without me explicitly asking for it is an antipattern and I can't stand tools that do so by default. My terminal has scrollback history TYVM. [push] default = upstream I think this is the default now anyway, but I don't want git assuming anything about remote-local branch relationships. [alias] tlog = log --graph --oneline Simple git tree-log shorthand. [status] showStash = true [stash] showPatch = true I always tend to forget when I stashed something, so I need the explicit reminder. The second one makes git stash more like git show.
- g-b-r 2y agoMost of my personalizations are through aliases, but another no-brainer is [interactive] singleKey = true and I'd recommend are [gc] reflogExpire = never reflogExpireUnreachable = 150 (or another high number)