frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Tired of high costs, some Americans are importing homes straight from China

https://www.cnn.com/2026/04/25/business/china-imports-americans-homebuilding-costs
2•breve•5m ago•0 comments

Trump rushed out of dinner amid reports of shots fired

https://www.nytimes.com/live/2026/04/25/us/trump-whca-shooting
1•koolba•8m ago•0 comments

Multiple AI Models in One Platform

https://www.chatcomparison.ai/
1•chatcomparison•10m ago•0 comments

Zephyr Agent: Add AI chat to any website

https://zephyr-agent.sh/
1•daltonlcarr•11m ago•0 comments

My husband and son dived to see the wreck of the Titanic, and never came back

https://www.theguardian.com/world/2026/apr/25/my-husband-and-son-titan-submersible-christine-dawo...
1•pseudolus•12m ago•0 comments

With A.I., Anyone Can Be an Influencer

https://www.newyorker.com/culture/the-lede/with-ai-anyone-can-be-an-influencer
1•petethomas•20m ago•0 comments

Tell HN: An app is silently installing itself on my iPhone every day

5•_-x-_•21m ago•1 comments

OpenAI shipped privacy-filter, a 1.5B PII tagger you can run locally

https://redactdesk.app/blog/openai-privacy-filter
2•kamban•23m ago•0 comments

Yalda Hakim on the collapse of 'seeing is believing'

https://www.reuters.com/lifestyle/culture-current/yalda-hakim-collapse-seeing-is-believing-2026-0...
1•petethomas•24m ago•0 comments

Decoupled DiLoCo for Resilient Distributed Pre-Training [pdf]

https://storage.googleapis.com/deepmind-media/DeepMind.com/Blog/decoupled-diloco-a-new-frontier-f...
1•gnabgib•26m ago•0 comments

The Race to Make the Most In-Demand Machine

https://www.wsj.com/business/the-race-to-make-the-worlds-most-in-demand-machine-092e8cea
1•petethomas•27m ago•0 comments

EarTrumpet: Volume Control for Windows

https://eartrumpet.app/
1•thunderbong•28m ago•0 comments

New Model May Explain Why You're Not a Twin

https://nautil.us/this-new-model-may-explain-why-youre-not-a-twin-1280219
1•Brajeshwar•28m ago•0 comments

Why is there so much bad code at big companies?

https://www.natemeyvis.com/why-is-there-so-much-bad-code-at-big-companies/
1•Brajeshwar•29m ago•0 comments

Usage limits for each of the Claude plans

https://xcancel.com/nrehiew_/status/2048009931757097079
2•byincugnito•30m ago•0 comments

Google unveils way to train AI models across distributed data centers

https://www.sdxcentral.com/news/google-unveils-way-to-train-ai-models-across-distributed-data-cen...
1•oavioklein•33m ago•1 comments

China Publishes Maps Detailing Minerals on the Ocean Floor

https://www.nytimes.com/2026/04/23/climate/china-seabed-mining-maps-rare-earths.html
1•bookofjoe•33m ago•1 comments

The Super Nintendo Cartridges

https://fabiensanglard.net/snes_carts/
3•offbyone42•34m ago•0 comments

Thalidomide Scandal

https://en.wikipedia.org/wiki/Thalidomide_scandal
2•jseip•36m ago•0 comments

Superpower Suicide (Or, Attempted Suicide)

https://snyder.substack.com/p/superpower-suicide
1•hkhn•37m ago•0 comments

AI cannot plan

https://orchidfiles.com/ai-will-build-your-roadmap-in-ten-seconds/
1•theorchid•37m ago•0 comments

Europe to burned American scientists: We'll take you in (2025)

https://www.politico.eu/article/europe-exploit-dunald-trump-brain-drain-academic-research-progres...
20•vrganj•43m ago•7 comments

Show HN: OO – Automated O&O Shut-Up for Windows

https://github.com/mytech-today-now/OO
1•mytechtoday•44m ago•0 comments

Show HN: DDoS detection in 0.9s, tested against a 48 Gbps attack live

https://flowtriq.com/blog/lorikeet-security-case-study
1•jacob_masse•45m ago•0 comments

Fast Fourier Transforms: for fun and profit (1966)

https://dl-acm-org.mutex.gmu.edu/doi/abs/10.1145/1464291.1464352
2•smitty1e•49m ago•0 comments

Ask HN: Oh, What Places to Go (Seriously Tho)

4•thx•50m ago•7 comments

Show HN: MTTCleaner – Same as CCleaner but free, no ads

https://github.com/mytech-today-now/mTTCleaner
1•mytechtoday•59m ago•0 comments

Why has there been so little progress on Alzheimer's disease?

https://freakonomics.com/podcast/why-has-there-been-so-little-progress-on-alzheimers-disease/
33•chiefalchemist•1h ago•4 comments

Multiple things can be true at the same time

https://frederikbraun.de/feels-and-llms.html
2•birdculture•1h ago•0 comments

U.S. Considering Foreign Designs, Shipyards for New Navy Ships in $1.85B Study

https://news.usni.org/2026/04/24/u-s-considering-foreign-designs-shipyards-for-new-navy-frigate-d...
3•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".