frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Three Sweltering Days Shredding the High Seas

https://defector.com/i-spent-three-sweltering-days-shredding-the-high-seas-at-jogging-pace-and-it...
1•lantry•1m ago•0 comments

Mind, Amplified Now in Beta

https://www.archii.ai/
1•lbrendle•3m ago•1 comments

Richard Garriott is officially regaining control of the Ultima series

https://www.videogameschronicle.com/news/richard-garriott-is-officially-regaining-control-of-the-...
1•lnguyen•3m ago•0 comments

Tips for Startup Companies (2007)

http://philip.greenspun.com/business/startup-tips/
1•mosesk•6m ago•0 comments

Reducing undefined behavior in the C language

https://lwn.net/Articles/1095811/
1•signa11•7m ago•0 comments

Tor based encrypted file sharing

https://blackhole-fileshare.nexxuz.co/
1•TheNexxuz•9m ago•1 comments

Show HN: Moching – AI desktop agent with 219 built-in tools (Rust)

https://github.com/moching-ai-dev/moching
1•moching_ai_dev•9m ago•0 comments

US disrupts Chinese hacking tools as 7 govts warn of PRC spies

https://www.theregister.com/security/2026/10/08/us-disrupts-chinese-hacking-tools-as-7-govts-warn...
3•snarky-comments•10m ago•0 comments

Trump: Anyone saying "AI" is "THE ENEMY"; The White House uses it

https://www.axios.com/2026/10/08/trump-ai-super-intelligence-white-house
1•apical_dendrite•10m ago•1 comments

Augment Code's Next Chapter

https://www.augmentcode.com/blog/augment-code-next-chapter
1•multisport•10m ago•1 comments

Receipt for sale of Jane, age 18, and her son, Henry, age 1

https://loc.gov/pictures/resource/cph.3c25134/
1•alex000kim•13m ago•0 comments

Disney will stream Super Bowl this year

https://variety.com/2026/tv/news/disney-plus-streaming-super-bowl-lxi-2027-1236904265/
2•mikeaskew4•17m ago•2 comments

World Models Breakthrough in 2027 – Top Researchers

https://changxu.dev/radar/world-models
2•KazaNLP•18m ago•1 comments

Vede Website

https://www.vedaos.org/
1•vahmoh25•19m ago•0 comments

Woogles.io: A FOSS Word Game Platform

https://woogles.io
2•randlet•19m ago•0 comments

How the bad science of AI doomerism is good for big business

https://thebulletin.org/2026/09/how-the-bad-science-of-ai-doomerism-is-good-for-big-business/
1•pseudolus•19m ago•0 comments

MapRoulette security incident – October 2026

https://community.openstreetmap.org/t/maproulette-security-incident-october-2026/148566
5•raybb•25m ago•0 comments

Gigabyte W775-V10-L01 GB300 AI-Workstation

https://www.servethehome.com/gigabyte-w775-v10-l01-hands-on-bringing-nvidia-gb300-deskside/
4•jacquesm•33m ago•1 comments

Jane Austen themed reading room

https://study.scrivium.com/
4•curo•34m ago•2 comments

Show HN: Run Claude Frontend with Non-Anthropic Models

https://github.com/mkornreich/llm-desktop-electron
1•enjoyyourlife•35m ago•0 comments

When should an agent own the control flow?

https://www.calm.rocks/blog/pipeline-vs-agent/
2•calmrocks•39m ago•0 comments

US Bars Microsoft, Indian Firms from Visa Program in Blow

https://news.bloomberglaw.com/daily-labor-report/us-suspends-visa-program-for-tech-firms-includin...
9•nomagicbullet•43m ago•0 comments

AHM Statement on OpenAI's October 6 Release of Mathematical Documents

https://terrytao.wordpress.com/2026/10/07/ahm-statement-on-openais-october-6-release-of-mathemati...
3•doppp•46m ago•0 comments

Is society growing stupider? The clues are simple and repeated

https://www.washingtonpost.com/opinions/2026/10/07/culture-is-getting-simpler-that-should-worry-you/
9•pseudolus•48m ago•3 comments

From 35 seconds to half a second: 70× faster dashboards in plain Postgres

https://foresite.dev/blog/postgres-daily-rollups
3•cheesemoopy•48m ago•0 comments

Ranked: The Biggest Military Drone Exporters

https://www.visualcapitalist.com/ranked-countries-exporting-most-military-drones/
6•snarky-comments•51m ago•0 comments

Bending the Curve of Discovery: AI in Science Today and Tomorrow

https://institute.deepmind.com/essays/bending-the-curve-of-discovery-ai-in-science-today-and-tomo...
5•rkp8000•53m ago•0 comments

He built his own Flock-style camera to track police. The police didn't like it

https://san.com/cc/he-built-his-own-flock-style-camera-to-track-police-the-police-didnt-like-it/
5•crummy•53m ago•0 comments

PEP 848: Generational Incremental Garbage Collection

https://discuss.python.org/t/pep-848-generational-incremental-garbage-collection/109214
4•lumpa•55m ago•0 comments

Pyronaut

https://pyronaut.io/2026/10/02/introducing-pyronaut/
3•ejboy•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".