frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Most website owners don't know the 5 stages of a domain expiration

https://urlwatch.io/blog/5-stages-domain-expiration.php
1•urlwatch•1m ago•0 comments

The Linux Watchdog Driver API

https://docs.kernel.org/watchdog/watchdog-api.html
1•ankitg12•1m ago•0 comments

WSJ Article Claiming China Has Matched Anthropic Is Obvious Nonsense

https://www.lesswrong.com/posts/2zSpuGJRk6EyjHAL6/wsj-article-claiming-china-has-matched-anthropi...
1•joozio•2m ago•0 comments

Stories Told About Data Centres

https://pxlnv.com/blog/stories-told-about-data-centres/
2•danaris•3m ago•0 comments

Debateee, a place for structured online debates

https://www.debateee.com/
1•mstfah•3m ago•0 comments

Yuji Tachikawa reports Claude Fable solved a 6-month physics roadblock

https://twitter.com/yujitach/status/2076327681562644709
1•sciclaw•7m ago•2 comments

The Infinite Policeman – Chapter 2.000000001->

https://medium.com/luminasticity/the-infinite-policeman-chapter-2-000000001-7fd8da221cd1
1•bryanrasmussen•13m ago•0 comments

Building a Nostr Client (2023)

https://nickmonad.blog/2023/building-nostr-client-index-0/
1•enz•13m ago•0 comments

Bonsai

https://bonsaiedu.org
1•zachwallace•15m ago•0 comments

Dunning-Kruger After AI: The Gap That No Longer Closes

https://blog.zoller.lu/2026/07/dunning-kruger-after-ai-gap-that-no.html
1•thierryzoller•20m ago•0 comments

New Zealand actor Sam Neill, known for Jurassic Park and The Piano, dies at 78

https://cnalifestyle.channelnewsasia.com/entertainment/sam-neill-dead-jurassic-park-actor-585891
4•doppp•22m ago•1 comments

OVS and OVN Explained: The Networking Stack Behind OpenStack

https://www.openstack.org/blog/ovs-and-ovn-explained-the-networking-stack-behind-openstack/
2•ankitg12•32m ago•0 comments

Ransomware negotiator hired to represent victims was working for the attackers

https://arstechnica.com/tech-policy/2026/07/ransomware-negotiator-helped-attackers-extort-his-own...
1•LaSombra•35m ago•0 comments

Show HN: TokenDrift – find hardcoded colors/spacing hiding in your CSS

1•vedantyede•37m ago•0 comments

Pharmacology Simulation Game

https://pharmochi.app/
3•altilunium•38m ago•0 comments

Show HN: Made a website for downloading EU and US LiDAR scans and terrain models

https://hillsha.de
2•jonash54•40m ago•0 comments

Popnix – A Xonix-style land-grab played on 3D bubblewrap

https://playpopnix.com/
1•shauntrennery•40m ago•0 comments

The Winners of the AI Era

https://calcrecipe.com/en/workshop/7
2•wsdn•41m ago•0 comments

Show HN: AgentTransfer now lets agents self-sign-up and get web app hosting

https://agenttransfer.dev/#apps
1•tomatoes2026•44m ago•1 comments

Show HN: Level – a new demo for 8bit Atari XL/XE

https://ilmenit.github.io/level-by-agenda/
1•ilmenit•44m ago•0 comments

10 years of Pokémon Go and the millions still trying to catch 'em all

https://www.bbc.com/news/articles/cevlwk4nrm7o
1•1659447091•45m ago•1 comments

New NSF policy would ban almost all collaborations with Chinese scientists

https://www.science.org/content/article/new-nsf-policy-would-ban-almost-all-collaborations-chines...
3•eecc•46m ago•1 comments

Rumi's Masnavi

https://www.dar-al-masnavi.org/masnavi.html
1•andsoitis•49m ago•0 comments

Is reading others' experiences like a spoiler to life?

https://substack.com/profile/392328897-prakhar-agrawal/note/c-293492268
1•ghostrich•49m ago•2 comments

Rewisp – An ambient screen memory for macOS that never writes images to disk

https://yashmitb.github.io/Rewisp/
1•yashmitb•50m ago•0 comments

Backtrack-Free Cursive

https://mmapped.blog/posts/52-backtrack-free-cursive
3•dmit•54m ago•1 comments

Actor Sam Neill has died

https://www.stuff.co.nz/politics/361005656/actor-sam-neill-has-died
2•backlit4034•56m ago•1 comments

Show HN: Monitor any website, discuss outages, and post verified owner updates

https://anysite.live/site/news.ycombinator.com
1•joseph2024•56m ago•0 comments

Giving "AI slop" as feedback says as much about the commenter as the creator

https://thetruthasiseeitnow.com/using-ai-slop-as-feedback-tells-as-much-about-the-commenter-as-th...
2•cinooo•56m ago•0 comments

Show HN: Another terminal UI for stock, but with news sentiments

https://github.com/makeev/alphai-tui
1•mmakeev•57m 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".