frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

We are witnessing the death of the games console

https://mattcasmith.net/2026/08/09/death-of-the-games-console
1•mattcasmith•1m ago•0 comments

The Aaronson Oracle: an interactive lesson in human predictability

https://aaronsonoracle.com/
1•Tomte•2m ago•0 comments

Ask HN: Should AI's tell you they're AI?

1•logicallee•2m ago•0 comments

Show HN: Argonix – One AI-powered platform for SRE and cloud operations

https://argonix.io/
1•pydavid•6m ago•0 comments

Show HN: Free QR Code Generator – URL, Text, WiFi and VCard – Free, No Signup

https://at-use.com/tools/qr-code-generator
1•atuse•7m ago•1 comments

Angel Investor Simulator

https://store.steampowered.com/app/4771830/Angel_Investor_Simulator/
1•babuskov•7m ago•0 comments

Ask HN: What you using local models for?

1•kandros•8m ago•0 comments

Solitude as a new aspirational lifestyle: 'We are not lonely'

https://www.bbc.com/news/articles/c5y63dw2x3wo
2•paulpauper•10m ago•0 comments

Softlanding Linux System – ArchiveOS

https://archiveos.org/sls/
1•rbanffy•10m ago•0 comments

The economics professor who keeps running office hours

https://current.fas.harvard.edu/stories/meet-economics-professor-who-keeps-running-office-hours
1•paulpauper•11m ago•0 comments

Show HN: Restoredrill proves your Postgres backups restore

https://github.com/ahmadpiran/restoredrill
2•ahmadpiran•11m ago•0 comments

Taco Bell fans won't let cyclospora come between them and food

https://www.yahoo.com/entertainment/articles/taco-bell-fans-wont-let-100001989.html
2•paulpauper•13m ago•0 comments

Reducing Hallucinations in LLM-Gen. Code via Semantic Triangulation (OOPSLA 26)

https://github.com/msv-lab/just-tri-it
2•mechtaev•14m ago•0 comments

Ask HN: Do you use LLMs for non-coding related work?

1•muddi900•14m ago•1 comments

Forecasting the AI Bubble

https://siliconangle.com/2026/08/08/forecasting-ai-bubble-scarcity-turns-surplus/
1•trilogic•15m ago•0 comments

Supersonic Trebuchet [video]

https://www.youtube.com/watch?v=Co57SfcT-h0
1•walterbell•16m ago•0 comments

The West's Demographic Math No Longer Adds Up

https://www.politico.com/news/magazine/2026/08/08/europe-us-fertility-immigration-01029122
3•pseudolus•18m ago•0 comments

Stone Soup AI (2024)

https://simons.berkeley.edu/news/stone-soup-ai
1•mpweiher•25m ago•0 comments

Climate Change and Tariffs Help China Raise More Cattle

https://www.nytimes.com/2026/07/30/business/china-beef-imports-tariffs.html
2•xnhbx•26m ago•0 comments

Show HN: Greenbatch – a batching dependency update skill

https://github.com/josipmusa/greenbatch
1•anaq42•26m ago•0 comments

AI Writes the Code, but Humans Can't Review It All. Now What?

https://www.sylvainkalache.com/blog/ai-writes-the-code-but-humans-cant-review-it-all
4•sylvainkalache•31m ago•0 comments

CSS: The bomb inside your inbox

https://portswigger.net/research/css-the-bomb-inside-your-inbox
5•ashurandi•39m ago•0 comments

Enough with all the world-historic milestones

https://scottaaronson.blog/?p=9979
1•mellosouls•40m ago•0 comments

Everest Fallacy

https://www.livius.org/articles/theory/everest-fallacy
2•jruohonen•41m ago•0 comments

Multiplayer Game Networking with Python

https://github.com/feberts/python-game-server
2•tio-fabi•45m ago•0 comments

The attacker can prove what they took. You can only prove what you logged

https://stillig.net/posts/prove-what-they-took/
1•johtidebreak•49m ago•0 comments

The Alpha 21264 CPU: NT's Greatest RISC (1998)

https://halfhill.com/byte/1998-12_alpha.html
5•Lammy•50m ago•2 comments

Aswath Damodaran: Big Tech Has No Idea How AI Pays Off

https://www.youtube.com/watch?v=vE_FR0O-Jhk
2•tcp_handshaker•58m ago•1 comments

Ask HN: What part of modern Git hosting system is the most crucial one for you

1•melezhik•58m ago•3 comments

Internal documents show how US tech companies captured children's attention

https://www.nytimes.com/2026/06/04/us/social-media-schools.html
4•Dusrri•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•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".