frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Corner-Case RCU Implementations

https://people.kernel.org/paulmck/stupid-rcu-tricks-corner-case-rcu-implementations
1•luu•2m ago•0 comments

Bank Python

https://calpaterson.com/bank-python.html
1•Redoubts•6m ago•0 comments

Show HN: TRELLIS.2 image-to-3D running on Mac Silicon – no Nvidia GPU needed

https://github.com/shivampkumar/trellis-mac
4•shivampkumar•8m ago•0 comments

How We Got the Favicon

https://thehistoryoftheweb.com/how-we-got-the-favicon/
3•valzevul•9m ago•0 comments

Tariff-refund portal is about to be America's hottest website on Monday

https://www.npr.org/2026/04/19/nx-s1-5786635/tariff-refunds-customs-ace-portal
5•rawgabbit•13m ago•0 comments

Sudo for Windows

https://github.com/microsoft/sudo
2•luispa•16m ago•1 comments

Alan Kay – Programming and Scaling (2011) [video]

https://www.youtube.com/watch?v=YyIQKBzIuBY
2•alhazrod•19m ago•0 comments

The Rich Do Pay Lower Taxes Than You (2019)

https://www.nytimes.com/interactive/2019/10/06/opinion/income-tax-rate-wealthy.html
3•johnbarron•27m ago•2 comments

My Life Story in a Nutshell

https://jsavage.xyz/2026/04/11/im-back-heres-my-life-story-in-a-nutshell/
2•JSavageOne•28m ago•0 comments

Is Money Worth Moving For?

https://whattoaskfor.com/
2•ForgetToRead•32m ago•0 comments

Looking back on Stripe's payment API migration

https://jacobbrazeal.wordpress.com/2026/04/19/review-stripes-payments-apis/
4•tibbar•40m ago•1 comments

Iowa went all-in on school choice

https://www.npr.org/2026/04/19/nx-s1-5683199/education-school-choice-iowa-students-charter-school...
2•freeopinion•43m ago•0 comments

Nostr-powered E2EE Collaboration platform powered by Marmot Protocol

https://www.lemonwire.work/
2•jdbohrman•44m ago•0 comments

How to get Hired at a Startup (as a student)

https://twitter.com/robechun/status/2045974706470404589
2•altrum•50m ago•0 comments

Show HN: Clone, a small Rust VMM, forks VMs in under 20ms via CoW

https://github.com/unixshells/clone
3•rasengan•53m ago•0 comments

Fractal Compression

http://janosmeny.com/blog/fractal-compression/index.html
2•janos95•58m ago•1 comments

Slava's Monoid Zoo

https://factorcode.org/slava/monoids.html
2•luu•1h ago•0 comments

Nicholas Pardini on real inflation vs. CPI and financial repression [video]

https://www.youtube.com/watch?v=qcZEj88sQp4
4•telotortium•1h ago•0 comments

Show HN: Brygga – A modern, fast, feature-rich IRC client for macOS

2•EldrRoot•1h ago•0 comments

Arm Helium Technology Reference Book (2023) [pdf]

https://github.com/arm-education/Arm-Helium-Technology/blob/main/HeliumTechnology_referencebook.pdf
2•my123•1h ago•0 comments

To Dissect a Mockingbird: A Graphical Notation for the Lambda Calculus (1996)

https://dkeenan.com/Lambda/index.htm
4•pizza•1h ago•0 comments

Vercel April 2026 security incident

https://vercel.com/kb/bulletin/vercel-april-2026-security-incident
2•lox•1h ago•1 comments

The game was rigged by the one man hired to prevent rigging

https://twitter.com/Jeremybtc/status/2045561556650639664
2•delichon•1h ago•0 comments

Swiss AI Initiative

https://www.swiss-ai.org
4•doener•1h ago•1 comments

Got an Old Kindle? It Might Not Work Anymore

https://www.nytimes.com/wirecutter/reviews/older-kindle-support-ending/
16•eigenhombre•1h ago•4 comments

2,100 Swiss municipalities showing which provider handles their official email

https://mxmap.ch/
38•doener•1h ago•11 comments

Vercel hack – an old fashioned honey pot?

https://twitter.com/rauchg/status/2045995362499076169
3•Juusohei•1h ago•0 comments

NVFP4 on Nvidia DGX Spark is slower than FP8 on the same model

https://forums.developer.nvidia.com/t/nvfp4-on-dgx-spark-gb10-is-broken-i-bought-9-of-these-for-t...
3•vinnybad•1h ago•0 comments

Ultimate Guide to Vibe Coding

https://github.com/EnzeD/vibe-coding
2•indigodaddy•1h ago•0 comments

Ukraine Moves to Replace Frontline Soldiers with 25,000 Ground Robots

https://united24media.com/latest-news/ukraine-moves-to-replace-frontline-soldiers-with-25000-grou...
16•Teever•1h ago•1 comments
Open in hackernews

Git Commands That Cover 90% of a Developer's Daily Workflow

https://jsdev.space/15-git-commands/
29•javatuts•11mo ago

Comments

epmatsw•11mo ago
restore and maybe switch are the two missing ones I think. Rebase for me, but that’s preference. Cherry-pick too.
rentonl•11mo ago
my co-workers used to think I was an expert in git. In reality, they memorized 7 commands while I memorized 15
hbogert•11mo ago
i memorized that a commit tree is a ordered set of patches. Everything goes from there.
Areibman•11mo ago
In similar fashion, this site has saved me countless hours fixing common git issues https://ohshitgit.com
the__alchemist•11mo ago
I need to alias:

  git add .
  git commit -am "descriptive name"
  git push

to:

  git sync "descriptive name"
horsawlarway•11mo ago
personally - skip the 'git add .'

It's a pretty terrible habit to get into, and will (not can - will) cause all sorts of headaches. From minor ones like personal editor configs getting dumped into the projects, all the way up to major ones like secrets ending up in your git history.

If you want something close, but much better, do something like:

    if [[ -n $(git ls-files --others --exclude-standard) ]]; then
        echo "There are untracked files.  Please add, remove, or ignore them."
    else
        git commit -am "descriptive name"
        git push
    fi
the__alchemist•11mo ago
I see your point, but find it worth it for convenience. Ultimately git is a tool I use to get the job done, and I want it out of the way. 99% of the time, I just want to sync my project, which doesn't only mean edits to existing files.
open-paren•11mo ago
How about `git add --patch -all` to make it interactive? I have that aliased to `gap` and it is probably my most used git command.
cholantesh•11mo ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•11mo ago
I'd like to suggest also mentioning `git add -p` (--prompt). It's very helpful for just adding changes relevant to the commit
nickcw•11mo ago
No `git rebase`?

Here are my stats for my last 300 or so git commands from my history

    $ history | grep git | awk '{print $3}' | sort | uniq -c | sort -rn

     71 log
     44 show
     34 diff
     26 co # alias for checkout
     24 cherry-pick
     23 status
     18 brs # alias for branch -v --sort=-committerdate
     13 rebase
     11 commit
     11 add
      8 push
      4 archive
      3 reset
      2 pull
      1 grep
      1 checkout
      1 br
Been doing lots of tricky merges recently hence all the cherry-picks! Not normally such a large part of my workflow.
mercer•11mo ago
For me, I generally don't go far beyond the commands in the article, but I /do/ make a lot of use of git rebase -i in my branches.
karmakaze•11mo ago
Maybe not essential, but reflog is invaluable.

I also like to separate fetch from pull (fetch + merge).

foobarkey•11mo ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•11mo ago
Both are essential.
realaleris149•11mo ago
There are other commands?
incomplete•11mo ago
also gonna echo the same sentiment: where's rebase? :)

two other git log commands i find to be insanely useful are:

alias hlog='git log --date-order --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

and:

alias alog='git log --date-order --all --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

this is great when working in a repo w/a main "prod" branch that you don't commit to directly, but instead commit to "staging" or "dev". alog shows you the entire repo's history for all branches, and hlog is just the graph of the non-pushable branches (plus all feature branches).

hbogert•11mo ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•11mo ago
It missed "git switch" and "git restore".