Some extra options I like: [apply] # Remove trailing whitespaces whitespace = fix [color "diff"] whitespace = red reverse [diff] colorMovedWS = allow-indentation-change [format] pretty = fuller [log] date = iso [pull] ff = only
How Core Git Developers Configure Git
71–80 of 129 posts
Re: How Core Git Developers Configure Git
#72Re: How Core Git Developers Configure Git
#73I’ve been practicing trunk-based development for the last year and none of these Git tips apply.
Re: How Core Git Developers Configure Git
#74 [alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit --branches
It shows a coincise colored graph of your commits and branches.Re: How Core Git Developers Configure Git
#75Earlier quoted context omitted.
While your comment is in jest, I agree with the sentiment. The whole "main" debacle sucks and, to this day, still breaks everyone's git usage.
Honest question: What has it broken about your git usage? I haven’t really noticed a problem. Sometimes a repo uses “main” and sometimes “master”. It’s not like “master” was the only option before
It's not really a major issue, but the way this "problem" was created and then forced onto the rest of us by someone with very strong opinions — but zero actual technical accomplishments in git development — is annoying, that's all. And it keeps reminding you of itself — see the first paragraph.
Re: How Core Git Developers Configure Git
#76Earlier quoted context omitted.
After using delta for a while, I'm going back to the regular diff view... it's not that it isn't good, but I'm constantly copying diffs (yes, I know I can generate patches) and the pretty output breaks that workflow. Also, when your terminal is a bit small it's a bit hard to see things. But it's really good software, I recommend anyone who's reading to give it a try.
IIRC if you pipe the output to, e.g, xclip, or redirect to a file it will give the original diff format. Not as convenient, but still workable.
Re: How Core Git Developers Configure Git
#77Re: How Core Git Developers Configure Git
#78 git config --global core.pager bat
https://github.com/sharkdp/bat/Re: How Core Git Developers Configure Git
#79I also have this alias to my config [alias] lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) %Creset' --abbrev-commit --branches It shows a coincise colored graph of your commits and branches.
Re: How Core Git Developers Configure Git
#80 [alias]
out = "log @{u}.."
In my head I always hear it in the voice of The Terminator: https://youtu.be/8cdC1Y5oRFg?t=54