Live data from Hacker News

Highlights from Git 2.28

github.blog

1–10 of 147 posts

Re: Highlights from Git 2.28

#3
post #2

I wonder about which primary branch naming convention they’ll arrive at. “primary” is my personal favorite ;)

I saw somebody on Twitter call theirs "canon", which I've really taken a liking to. It fits nicely in regular speech too :D

Re: Highlights from Git 2.28

#4
post #3
post #2

I wonder about which primary branch naming convention they’ll arrive at. “primary” is my personal favorite ;)

I saw somebody on Twitter call theirs "canon", which I've really taken a liking to. It fits nicely in regular speech too :D

I use, and prefer "trunk" since I rarely use branches, but "canon" might change my mind.

Re: Highlights from Git 2.28

#5
post #2

I wonder about which primary branch naming convention they’ll arrive at. “primary” is my personal favorite ;)

Github has said the most popular one across all their repos is `main`, and that's what they'll be going with themselves.

(Source: https://github.com/github/renaming)

Re: Highlights from Git 2.28

#8
post #3
post #2

I wonder about which primary branch naming convention they’ll arrive at. “primary” is my personal favorite ;)

I saw somebody on Twitter call theirs "canon", which I've really taken a liking to. It fits nicely in regular speech too :D

Canon is excellent, but I fear it wouldn't catch on due to its religious origins / connotations.

Re: Highlights from Git 2.28

#9
Someone please give me the missing link here:

1. I do `git log` which helpfully pipes to `more` where I can use vim-stsyle search to find the commit I'm interested in. 2. I find the relevant commit. 3. Now I want to `git show` that commit.

Currently I double click on the human unreadable commit, copy it, quit `more` to get back to the command line, type `git show`, then paste the commit. Navigate, click-click, shortcut, 'q', type a command, paste. That's six pieces of business.

That seems very wrong and time-consuming.

How do I go gracefully from browsing git log to git show without retyping/pasting the human unreadable commit? Preferably with fewer than seven steps.

Re: Highlights from Git 2.28

#10
post #9

Someone please give me the missing link here: 1. I do `git log` which helpfully pipes to `more` where I can use vim-stsyle search to find the commit I'm interested in. 2. I find the relevant commit. 3. Now I want to `git show` that commit. Currently I double click on the human unreadable commit, copy it, quit `more` to get back to the command line, type `git show`, then paste the commit. Navigate, click-click, shortc…

I use a text-mode UI like tig or gitui.
Post reply on HN