frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

A visual guide to the Gulf fertiliser blockade

https://www.theguardian.com/world/2026/apr/03/visual-guide-gulf-fertiliser-blockade
1•Archelaos•2m ago•0 comments

AI seed startups are commanding higher valuations

https://techcrunch.com/2026/03/31/its-not-your-imagination-ai-seed-startups-are-commanding-higher...
1•gmays•4m ago•0 comments

The Family That Decided to Have Their Stomachs Removed

https://www.theatlantic.com/health/2026/03/stomach-cancer-total-gastrectomy/686623/
1•paulpauper•4m ago•0 comments

Budget cuts for US science proposed again by Trump administration

https://www.nature.com/articles/d41586-026-01105-7
1•paulpauper•6m ago•0 comments

Europe asks if reviving nuclear is the answer to energy shocks

https://www.bbc.com/news/articles/c4g8k8vq8gno
1•dabinat•6m ago•0 comments

FTC Formalizes Aggressive Health Care Enforcement with New Task Force

https://www.jdsupra.com/legalnews/ftc-formalizes-aggressive-health-care-5368230/
1•WaitWaitWha•8m ago•0 comments

Weblens – The Whole Web, as Text

https://github.com/netizensnoopy/weblens
1•inthemirror•12m ago•0 comments

MCP vs. CLI: Why CLI makes more sense

https://twitter.com/Tiny_Fish/status/2040256448572334579
6•gargi_tinyfish•13m ago•0 comments

What is this triangular symbol? (2007)

https://painintheenglish.com/case/1530
2•DASD•16m ago•0 comments

Gold overtakes U.S. Treasuries as the largest foreign reserve asset

https://economictimes.indiatimes.com/news/international/us/gold-overtakes-u-s-treasuries-as-the-w...
3•lxm•20m ago•0 comments

Show HN: Travel Hacking Toolkit – Points search and trip planning with AI

https://github.com/borski/travel-hacking-toolkit
9•borski•24m ago•2 comments

IAMF: Immersive Audio for a New Decade (2025)

http://aomedia.org/blog%20posts/IAMF-Immersive-Audio-for-a-New-Decade/
1•breve•36m ago•0 comments

Reasoning models encode tool choices before they start reasoning

https://arxiv.org/abs/2604.01202
3•diwank•39m ago•0 comments

ClawTrak – free tool to check if your AI product is invisible to AI agents

https://clawtrak.com/
3•pixelfamiliar•42m ago•0 comments

Day Counter

https://xkcd.com/3228/
2•mitchbob•43m ago•0 comments

Meta lays off hundreds as tech giant pushes forward with AI investment

https://nypost.com/2026/04/03/business/meta-lays-off-hundreds-after-ceo-mark-zuckerberg-said-ai-c...
4•1vuio0pswjnm7•51m ago•1 comments

As Slow as Possible

https://pippinbarr.com/as-slow-as-possible/
2•brianzelip•52m ago•0 comments

Pre-1900 LLM tries to solve Relativity

https://twitter.com/hla_michael/status/2039768483018489994
2•coppertrack•55m ago•0 comments

Reliable Vibe Coding Process – Automation Without Intention Is Just Faster Chaos

https://markhuang.ai/blog/automation-without-intention-is-just-faster-chaos
2•zh_code•58m ago•0 comments

Odiusfly Studio (Indie Development)

https://odiusfly.com/
2•red369•59m ago•0 comments

What do you use as preview environment?

1•Escafati•1h ago•0 comments

Ask HN: What's the most repetitive thing you do with AI that you wish it just re

1•chloecv•1h ago•2 comments

Scaling tool orchestration data will emerge different intelligence and LLMs

2•arkariarn•1h ago•0 comments

Show HN: Cj – jc rewritten in Rust, 230 parsers, 10x faster

https://github.com/zhongweili/cj
2•zhongwei2049•1h ago•0 comments

Ask HN: Analysis of credit card receipts to show one does not buy alcohol

1•bryanrasmussen•1h ago•1 comments

Delve Removed from Y Combinator

https://www.ycombinator.com/companies/delve
8•carabiner•1h ago•2 comments

50 years of Apple with the only original employee still there

https://appleinsider.com/articles/26/04/02/inside-50-years-of-apple-with-the-only-original-employ...
1•canucker2016•1h ago•0 comments

Heisuke Hironaka, Groundbreaking Mathematician andFields Medalist, Is Dead at 94

https://www.nytimes.com/2026/03/25/science/heisuke-hironaka-dead.html
2•bookofjoe•1h ago•3 comments

Apple's Fitness Chief, Who Was Accused of Harassment, Is Retiring

https://www.nytimes.com/2026/04/01/technology/apples-fitness-chief-who-was-accused-of-harassment-...
2•canucker2016•1h ago•1 comments

Artemis II Orbit Simulator

http://orbitsimulator.com/gravitySimulatorCloud/simulations/1775087816554_artemis_ii_p.html
3•mxfh•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".