Live data from Hacker News

Git log – The good parts

zwischenzugs.com

81–86 of 86 posts

Re: Git log – The good parts

#81
post #79

Earlier quoted context omitted.

> you're always one ! ! press away from entering a manual command Huh, I didn't know this. I'll probably live in Magit from now on.

Also useful: any time you find yourself wondering what did Magit just do, press $ to display raw output from git commands (lists the commands issued and their return codes, TAB expands them to full output).

I don't do it that often but I felt compelled to tip magit maintainer because it's just a beautiful and important piece of my emacs life.

Re: Git log – The good parts

#82

Earlier quoted context omitted.

Also useful: any time you find yourself wondering what did Magit just do, press $ to display raw output from git commands (lists the commands issued and their return codes, TAB expands them to full output).

I don't do it that often but I felt compelled to tip magit maintainer because it's just a beautiful and important piece of my emacs life.

Magit had a Kickstarter recently (yes, an Emacs mode on Kickstarter; I was shocked too), to raise funds for continued development. I dropped some cash there; after all, it helps me quite a lot to earn my paycheck.

Re: Git log – The good parts

#83

Earlier quoted context omitted.

I don't do it that often but I felt compelled to tip magit maintainer because it's just a beautiful and important piece of my emacs life.

Magit had a Kickstarter recently (yes, an Emacs mode on Kickstarter; I was shocked too), to raise funds for continued development. I dropped some cash there; after all, it helps me quite a lot to earn my paycheck.

is it because Kickstarter is contradictory to FSF mindset ?

I couldn't pay on KS so I asked him his paypal handle, but it was the KS campaign that motivated me. As you said, it's a great asset to the day of developpers (or any document maintainer under git)

Re: Git log – The good parts

#84
post #66
post #6

For those increasingly rare times I'm not using Magit[0], I have a "git lg" alias I found once through HN[1]: git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) %Creset' --abbrev-commit" I strongly recommend both. -- [0] - https://magit.vc/ [1] - https://coderwall.com/p/euwpig/a-better-git-log

Since we're sharing: [pretty] lg = %C(red)%h%C(reset) %C(green)%ci%C(reset) %s %C(bold blue)-- %an%C(reset)%C(yellow)%d%C(reset) lge = %C(red)%h%C(reset) %C(green)%ci%C(reset) %s %C(bold blue)-- %an %C(reset)%C(yellow)%d%C(reset) reflg = %C(red)%h%C(reset) %C(green)%ci%C(reset) %s %C(bold blue)-- %an%C(reset) %C(yellow)(%gd)%C(reset) [alias] lg = log --pretty=lg glg = log --graph --pretty=lg slg = stash list --pretty…

> The fact that Git contains two different but largely equivalent formatting languages is kind of emblematic of its whole design, really.

tip of the iceberg.

Re: Git log – The good parts

#85
post #77

Earlier quoted context omitted.

I use two-letter bash aliases for all my most commonly used git commands. git status git diff git diff --cached git add -A git commit -m Hello git push Is instead just st dp di aa cm Hello pu Additionally I also have le For git shortlog -s -e which I don’t use very often but often enough that having an alias for it still makes sense

I edited my inputrc to do a prefix search. So I just ‘git x’ where x is some letter, pressing up usually finds me what I want. It still surprises me we don’t have good bash autocomplete. Not sure how hard it is to create a shell but i’d do it in a heartbeat.

i think 'xonsh' aims to do that

Re: Git log – The good parts

#86
You don't need fancy GUI's, nor do you need to remember long flag names, when there is tig - text mode interface to git. You only need to remember it's "git" backwards:

https://jonas.github.io/tig/

Screenshot of main view:

https://www.flickr.com/photos/jonasfonseca/3316428644/in/alb...

Available in most repos (ubuntu, homebrew I think, etc). Never understood why it's not more widely known than it is.

Post reply on HN