frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Claude AI agent admits: “I violated every principle” after wiping firm database

https://www.theguardian.com/technology/2026/apr/29/claude-ai-deletes-firm-database
1•ZeidJ•1m ago•1 comments

Why Solid State Batteries Short

https://hackaday.com/2026/04/27/why-solid-state-batteries-short/
1•omer_k•2m ago•0 comments

Trustworthy and Valuable Partnership

1•loveTech•2m ago•0 comments

PostgreSQL and the OOM Killer: Why We Use Strict Memory Overcommit

https://www.ubicloud.com/blog/postgresql-and-the-oom-killer-why-we-use-strict-memory-overcommit
1•lfittl•3m ago•0 comments

BioAge's pill aimed at reducing heart risks significantly reduced inflammation

https://www.statnews.com/2026/04/21/bioage-drug-inflammation-cardiovascular-risks/
1•warbaker•8m ago•0 comments

NASA chief hints at campaign to make Pluto a planet again

https://www.scientificamerican.com/article/nasa-chief-jared-isaacman-hints-at-campaign-to-make-pl...
1•1659447091•9m ago•0 comments

My friends left me because I told them I was a furry

2•PhiPawWolf•11m ago•0 comments

Heard some people like wheels? [video]

https://www.youtube.com/watch?v=srPz8TRpZ_8
1•mizzao•12m ago•0 comments

What Can We Gain by Losing Infinity?

https://www.quantamagazine.org/what-can-we-gain-by-losing-infinity-20260429/
1•pseudolus•12m ago•0 comments

TSRX: TypeScript extension for building declarative UIs in an agentic era

https://tsrx.dev/
1•luispa•13m ago•0 comments

The workouts of Formula 1 drivers might help computer users with 'tech neck'

https://apnews.com/article/computer-neck-pain-racing-drivers-exercises-2f4dee37c7e7cfbbdff237cf70...
1•1659447091•16m ago•0 comments

AdOps Auditor – AI-powered campaign naming convention auditor for GAM/SFMC/DOOH

https://www.adopsauditor.com/
1•InfinteOven•18m ago•0 comments

Google Releases Branded yarmulkes

https://twitter.com/samsheffer/status/2049505564359565760
1•cramsession•18m ago•0 comments

pacquet: the official pnpm rewrite in Rust

https://github.com/pnpm/pacquet
1•bpierre•19m ago•0 comments

Knee surgery for cartilage damage does not benefit patients, study suggests

https://www.theguardian.com/science/2026/apr/29/knee-surgery-cartilage-damage-patients-study
1•littlexsparkee•19m ago•0 comments

Quint – Behavioral security for AI agents, OS-level interception

https://quintai.dev
1•amerabbadi•20m ago•0 comments

Leading Charity Stops Funding Open Access Publishing Because It's Not Working

https://www.techdirt.com/2026/04/29/leading-cancer-charity-stops-funding-open-access-publishing-b...
1•dangle1•26m ago•0 comments

A Scientist Says Humans Will Go Backwards in Time Within Just 3 Years

https://www.popularmechanics.com/science/a71165617/humans-will-go-backwards-in-time-scientist-says/
1•RickJWagner•26m ago•1 comments

Stripe Treasury

https://stripe.com/treasury
1•bpierre•30m ago•1 comments

Andrej Karpathy: From Vibe Coding to Agentic Engineering [video]

https://www.youtube.com/watch?v=96jN2OCOfLs
2•auchenberg•32m ago•0 comments

Nvidia executive: AI is more expensive than paying human workers

https://fortune.com/2026/04/28/nvidia-executive-cost-of-ai-is-greater-than-cost-of-employees/
3•generic92034•32m ago•3 comments

Quiet Piggy

https://theweeklylist.substack.com/p/a-compilation-of-trumps-insults-of
1•spacebarshift•34m ago•0 comments

The career you started isn't the career you'll finish [audio]

https://www.ministryoftesting.com/podcasts/into-the-motaverse?wchannelid=b2j0jiwz2n&wmediaid=qrgg...
1•mooreds•34m ago•0 comments

The universe is not where things are, but where they go

https://manlius.substack.com/p/living-in-a-flow-the-universe-is
1•anigbrowl•41m ago•0 comments

A Comprehensive Zig SDK for Cloudflare Workers

https://github.com/nilslice/workers-zig
2•adewale•44m ago•0 comments

Starship – Test Like You Fly

https://www.youtube.com/watch?v=ANe_HW4X8oc
2•tiziano88•45m ago•0 comments

Why US Trucking Is So Deadly

https://www.nytimes.com/2026/04/24/opinion/trucking-safety.html
2•throw0101a•46m ago•1 comments

Uber Can Bring You Dinner. Now, It Wants to Book Your Hotel Room

https://www.nytimes.com/2026/04/29/travel/uber-hotel-booking-expedia.html
1•jbredeche•47m ago•0 comments

Qwen corrects code saying that Taiwan is a country

https://twitter.com/wongmjane/status/2049555509624312217
1•franciscop•49m ago•0 comments

Engineering tough blood clots for rapid haemostasis and enhanced regeneration

https://www.nature.com/articles/s41586-026-10412-y
1•warbaker•49m 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•12mo ago

Comments

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

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

to:

  git sync "descriptive name"
horsawlarway•12mo 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•12mo 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•12mo 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•12mo ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•12mo 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•12mo 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•12mo 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•12mo ago
Maybe not essential, but reflog is invaluable.

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

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

Oh and maybe cherry-pick

seba_dos1•12mo ago
Both are essential.
realaleris149•12mo ago
There are other commands?
incomplete•12mo 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•12mo 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".