3 ms·
My config: [alias] co = checkout ci = commit st = status br = branch hist = log --pretty=format
by chungy 3y ago
My config:
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
type = cat-file -t
dump = cat-file -p
dft = difftool
[tag]
sort = version:refname
[tar "tar.xz"]
command = xz -c
[tar "tar.zst"]
command = zstd -T0 -c
[log]
date = iso-local
[pull]
ff = only
[diff]
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[safe]
directory = *
[advice]
detachedHead = false
[init]
defaultBranch = master
- xyst 3y agoNot a fan of the “main” branch revolution? Pretty good config though. Personally, I use diff configs depending on oss vs personal vs work. So I combine mine with “[includeIf gitdir:~/oss…]” … Some companies like G have some weird requirements.
- chungy 3y agoNo, I'm not a fan of it. It's been master since forever and it's a perfectly good term, fits regular English convention of "master branch" too. > Personally, I use diff configs depending on oss vs personal vs work. So I combine mine with “[includeIf gitdir:~/oss…]” … I'd stuff such things into the local repos' .git/config files instead of the global. It's rare that I do it, but sometimes I do work with projects with differing conventions.
- influx 3y agoI liked it more once I realized it was fewer characters to type.
- worksonmine 3y agoTyping 'ma<Tab>' is the same in both cases. I don't like the change because the reason behind the change is political. Give an inch take a mile etc, it's getting out of hand. But I don't care enough to stand out.
- imbnwa 3y ago>Not a fan of the “main” branch revolution? Why not 'canon'?
- NateEag 3y ago"canon" is for the central repo, the blessed source of truth.
- prima-facie 3y agoDid you use Mercurial before? I miss its abbreviated commands. A few more from me: [alias] gr = grep -I ch = cherry-pick ls = ls-files tip = log -1 HEAD zip = archive -o latest.zip HEAD fix = commit --fixup
- chungy 3y agoNever used Mercurial in any serious capacity. The abbreviations mostly stem from CVS and Subversion experience (and really glad I haven't touched either in many years).