Live data from Hacker News

Git git git git git

caiustheory.com

211–220 of 244 posts

Re: Git git git git git

#211

This is nice specifically because of the way the author uses `exec`. Without meaning to be patronizing, there must be lots of people reading the thread who don't know what `exec` does, and why it's a neat solution to this problem (or non-problem, whatever your view is); I'd say do look it up if you're interested in programming.

Author here, I'm glad someone else appreciated it besides me. :-)

(It's especially pleasing to watch the system calls it generates via strace or dtrace!)

Re: Git git git git git

#212
post #191

Earlier quoted context omitted.

I think that advice got warped/lost in translation: Wasn't the original advice "dont't paste stuff copied from web pages into the CLI"? - Because a bad page could covertly change what is actually copied via JS. That danger doesn't apply when things are copied from the browser chrome (address bar) or other locations. So why would pasting then still be dangerous? I think blindly passing on advices "because $SECURITY" c…

You don't even need JS. In French and in style:

    

un paragraphe pas si innocent

So disabling JS won't protect you from those.

Re: Git git git git git

#213

Earlier quoted context omitted.

Relatable. For years, I aliased mroe to more. Now I alias mroe and more to less. My wife drafts a lot of legal documents, and has a problem with "doe snot". Which unfortunately the spelling checker is perfectly happy with.

There's defintitely room for an advanced spell checker that can say "This is valid, but probably wrong".

[deleted]

Re: Git git git git git

#214

Earlier quoted context omitted.

Relatable. For years, I aliased mroe to more. Now I alias mroe and more to less. My wife drafts a lot of legal documents, and has a problem with "doe snot". Which unfortunately the spelling checker is perfectly happy with.

There's defintitely room for an advanced spell checker that can say "This is valid, but probably wrong".

The spell checker in Chrome can already do that to some extent. For example, "The men walked over their to grab they're food." gets corrected: https://i.imgur.com/NR4zyVA.png

Re: Git git git git git

#216

Earlier quoted context omitted.

Relatable. For years, I aliased mroe to more. Now I alias mroe and more to less. My wife drafts a lot of legal documents, and has a problem with "doe snot". Which unfortunately the spelling checker is perfectly happy with.

There's defintitely room for an advanced spell checker that can say "This is valid, but probably wrong".

There’s at least one product trying to address the issue with “valid, but probably wrong” typos. It’s called Grammarly and for some unfathomable reason it gets advertised to me a lot on YouTube whenever Google detects I’m in South Korea; I believe they are seriously mistargeting their marketing efforts.

(That said, if it were me, I’m not sure if I would give up typing doe snot every once in a while.)

Re: Git git git git git

#217

>I quite often type git then go away and come back, then type a full git status after it. Does anyone else actually do this besides OP. I've never heard of this problem until now.

I do. And I also write "vim vim thefile.txt" and stuff like that. Finally I've written a small shell function that corrects "gi tpull" to "git pull", because that happens at least once a day.

alias p='git pull'

why type 8 characters 100 times a day, when you can type 1?

Re: Git git git git git

#219
post #158
post #145

Earlier quoted context omitted.

Well, cutting is called killing in Emacs...

So why is emodendroket referring to ctrl-w then?

In other words ctrl-w is "kill," which is what most people would think of as "cut," and ctrl-y is "yank," which is what most people would think of as "paste."

Re: Git git git git git

#220
post #193

Earlier quoted context omitted.

You're joking but... alias g='git status -sb' alias ga='git add' alias gac='git commit --amend' alias gb='git branch' alias gbb='git checkout -b' alias gbm='git branch --merged' alias gbn='git branch --no-merged' alias gc='git commit -m' alias gcp='git cherry-pick' alias gco='git checkout' alias gd='git diff' alias gdc='git diff --cached' alias gg='git status' alias gl='git log --graph --pretty=format:"%Cred%h%Creset…

Instead of `unfuckgitremote`, why not just use `git push -u`?

origin head
Post reply on HN