frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Wall Street regulator investigating prediction market giant Polymarket

https://www.politico.com/news/2026/06/26/cftc-investigation-prediction-market-polymarket-00978218
1•voxadam•2m ago•0 comments

Knowledge Distillation of Black-Box Large Language Models

https://arxiv.org/abs/2401.07013
2•babelfish•5m ago•0 comments

My coworker Iris isn't a person

https://vinibrasil.com/my-coworker-iris-isnt-a-person/
1•vnbrs•7m ago•0 comments

France records 1k additional deaths as extreme heat breaks European records

https://www.latimes.com/world-nation/story/2026-06-28/extreme-heat-breaks-more-european-records-1...
2•rolph•7m ago•0 comments

State of the Tau 2026: Why Pi Is Wrong

https://www.tauday.com/state-of-the-tau-current
1•rendx•7m ago•0 comments

Khaos C2: Building a Custom Command and Control from Scratch

https://medium.com/@28zaaky/khaos-c2-building-a-fully-custom-command-and-control-from-scratch-95c...
2•882542F3884314B•10m ago•0 comments

Show HN: Pitch Ponies – startup themed comic series

https://supramono.com/blog/never-trust-a-venture-capitalist-a-founders-comic-book-horror-story/
1•supramono•11m ago•0 comments

Writing your own static website generator

https://x3hy.github.io/data/pages/f32cbcd0-c594-4a16-b93b-bdcb2c9b2573.html
2•3hy•13m ago•0 comments

A QNX-inspired operating system with selectable kernels

https://qsoe.net
2•edvinbesic•16m ago•0 comments

Hire Me (Taylor) via API

https://taylor.town/looop-000
2•Curiositry•16m ago•0 comments

Amid stark opposition, data center developers think twice about Florida

https://www.politico.com/news/2026/06/28/florida-data-centers-developers-opposition-00978255
2•1vuio0pswjnm7•16m ago•0 comments

Xonaly – Canada's Independent Search Engine

https://xonaly.com/
3•backlit4034•17m ago•0 comments

Comparative Advantage in Software

https://achad4.substack.com/p/comparative-advantage-in-software
1•achad4•18m ago•0 comments

Role-model: protocol for assigning the right AI model for the right job

https://role-model.dev/
1•handfuloflight•21m ago•0 comments

How does a pull-back car work? Illustrated teardown

https://mechanical-pencil.com/products/car
2•Muhammad523•21m ago•1 comments

Why One of Tech's Biggest Gamblers Is Betting Against Elon Musk's AI Vision

https://www.wsj.com/tech/why-one-of-techs-biggest-gamblers-is-betting-against-elon-musks-ai-visio...
1•petilon•22m ago•2 comments

Slow Breathing Can Rewire Your Brain and Change the Choices You Make

https://scitechdaily.com/slow-breathing-can-rewire-your-brain-and-change-the-choices-you-make/
2•Gaishan•25m ago•0 comments

Lucidml – Playable World Models that run on consumer GPUs

https://www.reddit.com/r/lucidmlx/s/8d7ZjIvmV3
2•abhisoflucidml•28m ago•0 comments

Why frontier LLMs can't read the hard documents without experts involved

https://idp-software.com/news/the-76-percent-wall/
2•chelm•29m ago•0 comments

Ratflow NYC: Real-Time NYC Rat Map

https://ratflow.nyc/
1•ohjeez•31m ago•0 comments

Peruvians promised jobs in Russia, but landed on the front lines in Ukraine

https://www.cnn.com/2026/06/28/americas/russia-ukraine-peruvian-fighters-latam-intl
3•breve•32m ago•0 comments

Ten Takeaways from the AI Engineering Report 2026: The Acceleration Whiplash

https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways
1•mustaphah•32m ago•0 comments

Fixed-Rate Mortgages Are Rent Control for Homeoweners

https://precon.substack.com/p/fixed-rate-mortgages-are-rent-control
3•NomNew•35m ago•0 comments

Content-defined chunking in Go: 3.7 GB/s and a third less memory

https://www.plakar.io/posts/2026-06-14/go-cdc-chunkers-v1.1.0-faster-leaner-and-provably-correct/
1•vcoisne•35m ago•0 comments

Too Many Islands, Too Few Bridges: Notes from the Event Modeling Conference 2026

https://docs.eventsourcingdb.io/blog/2026/06/29/too-many-islands-too-few-bridges-notes-from-the-e...
1•goloroden•36m ago•0 comments

Show HN: Selixes - Self-hosted LLM failover gateway, budget caps and PII

1•selixes•38m ago•0 comments

Making POSIX filesystems replicated and highly available

https://www.zerofs.net/blog/highly-available-posix-on-s3
1•Eikon•38m ago•0 comments

Self-Destructing Graphics Cards

https://www.tomshardware.com/pc-components/gpus/melting-power-connectors-and-how-to-safeguard-aga...
1•TEHERET•41m ago•0 comments

Using Home Assistant in a botanical garden

https://vooijs.eu/posts/why-is-there-smoke-from-the-boiler-room/
2•wildekek•42m ago•0 comments

Ha-Joon Chang on the Future of India's Industrialization

https://frontline.thehindu.com/interviews/india-industrialisation-ha-joon-chang-interview/article...
1•pessimizer•46m 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•1y ago

Comments

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

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

to:

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

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

foobarkey•1y ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•1y ago
Both are essential.
realaleris149•1y ago
There are other commands?
incomplete•1y 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•1y ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•1y ago
It missed "git switch" and "git restore".