frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A narrative account of the development of SNOBOL

https://mads.si.edu/mads/id/NMAH-AC0196_gris720521
1•cwbuilds•1m ago•0 comments

UPI: Anatomy of a Transaction

https://timeseriesofindia.com/economy/reads/upi-architecture/
1•prtk25•3m ago•0 comments

Trump administration rescinds key rule protecting endangered wildlife

https://www.upi.com/Top_News/US/2026/07/10/endangered-wildlife/5421783724407/
2•Bondi_Blue•4m ago•0 comments

Modern Decor May Be Straining People's Brains

https://studyfinds.com/modern-decor-may-be-straining-peoples-brains/
2•downwithdisease•7m ago•0 comments

Chinese courts allow heirs to inherit accounts of deceased gamers

https://www.tomshardware.com/tech-industry/big-tech/chinese-courts-allow-heirs-to-inherent-accoun...
2•thisislife2•8m ago•0 comments

Show HN: Reame – a CPU inference server that gets faster as it runs

https://github.com/swellweb/reame
1•targetbridge•8m ago•0 comments

Store Arbitrary Data on Anything

https://fliptable.nyc
1•spaghetti-code•9m ago•0 comments

Local-first agent governance: keeping an AI agent contained

https://vektorgeist.com/blog
1•VektorGeist•9m ago•0 comments

Dynamic Dispatch

https://intertwingly.net/blog/2026/07/11/Dynamic-Dispatch.html
1•ingve•13m ago•0 comments

Monist, a WebGPU compiler for non-well-founded set theory

https://firstsynth.dev/monist
1•thingltd•17m ago•0 comments

Agentation – Visual UI Annotation for AI Coding Agents

https://www.agentation.com/
2•rekl•19m ago•0 comments

More Americans are aging alone. One woman told us what it's like

https://www.msn.com/en-us/news/crime/more-americans-are-aging-alone-one-woman-told-us-what-it-s-l...
1•like_any_other•20m ago•0 comments

Show HN: I Wanted AI Code Review I Could Own. So I Built Codra

https://medium.com/@devarshidev/i-wanted-ai-code-review-i-could-actually-own-so-i-built-codra-bee...
1•devarshishimpi•20m ago•0 comments

Cancelled by your future self? The fear isn't censorship. It's permanence

https://indianexpress.com/article/fresh-take/gen-z-digital-permanence-self-censorship-nep-2020-un...
1•thisislife2•21m ago•1 comments

The Great Wave Has Arrived (Memo from GLM CEO Jie Tang)

https://twitter.com/bingxu_/status/2075961011816092158
1•antinucleon•21m ago•0 comments

Git Takes Another Step Towards Making Rust Mandatory [video]

https://www.youtube.com/watch?v=I_6Mnvobi3c
2•baranul•22m ago•0 comments

Wheeler's Delayed-Choice Experiment

https://en.wikipedia.org/wiki/Wheeler%27s_delayed-choice_experiment
1•thunderbong•22m ago•0 comments

Canadian Junior Golf Association recruits players

https://rpgolf.wordpress.com/2026/07/11/canadian-junior-golf-association-gives-youngsters-chance-...
1•yankflank•22m ago•0 comments

Show HN: Make any website agent-ready in one script tag

https://www.openhermit.com
1•not_wowinter13•25m ago•0 comments

The Dangerous Myth of Flexibility

https://prospect.org/2026/07/09/dangerous-myth-of-flexibility-uber-lyft-gig-economy/
2•hn_acker•25m ago•0 comments

C++20 Improved the For-Loop Syntax

https://lzon.ca/posts/tips/cpp-for-range-init/
1•jpmitchell•26m ago•0 comments

Show HN: Combo.gg – Plans in seconds, for any game

https://combo.gg/
1•ca98am79•30m ago•0 comments

What loss.backward() actually does

https://oraziorillo.com/blog/what-loss-backward-actually-does/
1•oraziorillo•30m ago•1 comments

We Know Simple Fluids Can Flow. Turns Out, Some Can Fracture.

https://www.quantamagazine.org/we-know-simple-fluids-can-flow-turns-out-some-can-fracture-20260710/
1•Brajeshwar•32m ago•0 comments

SpaceX prepares for Starship Flight 13; company works toward orbital operations

https://www.yahoo.com/news/science/articles/spacex-prepares-starship-flight-13-022121988.html
1•bookmtn•34m ago•0 comments

Is There Any End to the Atlantic's "End-Ism" Fetish?

https://newrepublic.com/article/212923/the-atlantic-magazine-endism-fetish
4•amadeuspagel•36m ago•0 comments

SpaceX Flight 13 Starship

https://www.spacelaunchschedule.com/launch/starship-flight-13/
2•bookmtn•36m ago•0 comments

Show HN: Free AI Visibility Audit Tool& Agent

https://ai-visibility.pro
2•andytan•37m ago•0 comments

The Great American Fun Shortage of 2026

https://www.bloomberg.com/news/articles/2026-07-10/the-great-american-fun-shortage-of-2026
1•mancerayder•38m ago•0 comments

Dither Kit: A Free Dithered Chart Package

https://www.tripwire.sh/dither-kit
3•grapplingdev•40m 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".