frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Legislature weighs law change to give Alaskans 'right to repair' electronics

https://www.adn.com/politics/alaska-legislature/2026/04/26/legislature-weighs-law-change-to-give-...
1•rolph•36s ago•0 comments

Bedrock Linux: A Meta-Distribution for Combining Parts of Other Distros

https://bedrocklinux.org/
1•ffin•6m ago•0 comments

GNAT: The GNU Ada Compiler (2004) [pdf]

https://www.adacore.com/uploads/books/gnat-book.pdf
1•csb6•6m ago•0 comments

Munich Tram Cars (1876 – 2026)

https://www.mvg.de/news/150-jahre-tram/tramtypen.html
1•nyell•7m ago•0 comments

I guess it's probably the best time of year for a protest

https://codyellingham.substack.com/p/a-revolution-in-4k
1•cody_ellingham•9m ago•1 comments

Show HN: Intent Bus – SQLite job bus for coordinating scripts across devices

https://github.com/dsecurity49/Intent-Bus
1•dsecurity49•9m ago•0 comments

John Rawls and the Death of Western Marxism

https://josephheath.substack.com/p/john-rawls-and-the-death-of-western
1•juleiie•10m ago•0 comments

The Linux Kernel Tree About to Hit 40M Lines

https://www.phoronix.com/news/Linux-Kernel-Nearly-40M
1•speckx•11m ago•0 comments

The Prompt API

https://developer.chrome.com/docs/ai/prompt-api
1•gslin•11m ago•0 comments

Agentic Workforce Framework, an operating model for autonomous agent teams

https://github.com/rayyagari2-create/agentic-workforce-framework
2•rayyagari•20m ago•0 comments

Notepad++ for Mac

https://notepad-plus-plus-mac.org/
2•jonbaer•24m ago•1 comments

Show HN: Friendly prediction markets to turn trips into a running tournament

https://bets.bernikins.com/
2•k0rm•24m ago•0 comments

Kenya's Sabastian Sawe is first person to run sub-2-hour marathon

https://www.npr.org/2026/04/26/nx-s1-5800057/kenya-sabastian-sawe-first-person-2-hour-marathon-lo...
2•ejp•24m ago•0 comments

EvanFlow – A TDD driven feedback loop for Claude Code

https://github.com/evanklem/evanflow
3•evanklem2004•33m ago•0 comments

TurboQuant: A First-Principles Walkthrough

https://arkaung.github.io/interactive-turboquant/
1•kweezar•36m ago•0 comments

Language Anchoring: A Systematic Method for LLM Multilingual Adaptation

https://github.com/fkyah3/opencode-fkyah3
1•fkyah3•40m ago•0 comments

Smolwebifying My Site

https://akselmo.dev/posts/smolwebifying-my-site/
2•vinipolicena•44m ago•0 comments

Internet Graveyard

https://internetgraveyard.vercel.app/
3•thebigship•47m ago•0 comments

A better Kubernetes, from the ground up (2020)

https://blog.dave.tf/post/new-kubernetes/
3•Wingy•49m ago•0 comments

Blog Is a Radio Station

https://blog.jimgrey.net/2026/04/23/your-blog-is-a-radio-station/
3•foxfired•56m ago•0 comments

Show HN: The Unix Magic poster, annotated (updated)

https://github.com/drio/unixmagic
6•drio•57m ago•0 comments

SpaceX warns probes into abusive AI imagery could cause headaches for IPO

https://nypost.com/2026/04/24/business/elon-musks-spacex-warns-probes-into-sexually-abusive-ai-im...
4•1vuio0pswjnm7•1h ago•0 comments

From super powder to super power

https://www.scmp.com/news/china/science/article/3350906/super-powder-super-power-can-china-plasma...
2•xnhbx•1h ago•0 comments

Protein-templated synthesis of dinucleotide repeat DNA by antiphage RT

https://www.science.org/doi/10.1126/science.aed1656
2•xnhbx•1h ago•0 comments

Sama: Feels like a good time to seriously rethink OS

https://twitter.com/sama/status/2048428561481265539
3•tmzt•1h ago•0 comments

The Fourth Beta of Android 17

https://android-developers.googleblog.com/2026/04/the-fourth-beta-of-android-17.html
1•flykespice•1h ago•0 comments

Aether – A GCP-Native Framework to Terminate LLM Agent Drift

https://github.com/poinsettiaclg-gif/AETHER-core
1•Painsettia•1h ago•1 comments

What I Did In The Hedonium Shockwave, by Emma, aged 6 and a half

https://ozybrennan.substack.com/p/what-i-did-in-the-hedonium-shockwave
2•barry-cotter•1h ago•0 comments

Parental Controls

https://www.tumblr.com/luminousalicorn/814990078758830080/parental-controls
1•dado3212•1h ago•0 comments

The biggest insect ever was a "dragonfly"

https://eartharchives.org/index.html
2•anjel•1h ago•0 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".