frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

When Back-to-School Shopping Includes Bulletproof Backpacks

https://www.nytimes.com/interactive/2026/09/21/magazine/shooting-fears-school-equipment.html
1•bookofjoe•1m ago•1 comments

Comet SWAN26Q – The unconfirmed Scout object warrants monitoring, not concern

https://www.astrophyzix.com/2026/09/SWAN26Q-NEOCP-Report.html
3•JEOFFEZZ•7m ago•0 comments

Goodbye to the Hard Parts That Never Mattered

https://jakegoldsborough.com/blog/2026/goodbye-to-the-hard-parts-that-never-mattered/
2•JumpCrisscross•7m ago•0 comments

Show HN: I made a tool that turns Jetpack Compose Previews to embeddable scripts

https://composables.com/
1•alexstyl•9m ago•0 comments

OpenRig: Multi-Agent Harness

https://github.com/mvschwarz/openrig
2•handfuloflight•9m ago•0 comments

Behold the pawpaw, the tropical 'alien banana' that grows right here in Canada

https://www.cbc.ca/radio/thecurrent/pawpaw-tropical-fruit-canada-9.7356882
1•BiraIgnacio•11m ago•0 comments

OpenAI pauses top-model work after AI bypasses internet safeguards [video]

https://www.youtube.com/watch?v=a1qnCu1t9hI
1•kbn•11m ago•0 comments

PostgreSQL 19's "scary patch contest"

https://lwn.net/Articles/1092003/
1•pykello•11m ago•0 comments

(Book) When It Goes Wrong: What Angels and Founders Do Next

https://susanjmontgomery.substack.com/p/when-it-goes-wrong-what-angels-and
1•mgav•13m ago•0 comments

Show HN: Guess which repository has more GitHub stars

https://higherlower.focuslab.pk/
1•alexander2002•15m ago•0 comments

In preparation for Wow Forever, here is a guided tour of Warcraft

https://ryeceps.github.io/azeroth-chronicle/
1•carnufex•17m ago•0 comments

Show HN: MCPersist – Minecraft worlds that keep running after the host logs off

https://github.com/5TN1rcZRS79VAEFuUCRB/MCPersist
1•CMboSqdTACiEX27•19m ago•0 comments

Drop Your Startup Ideas

1•KinetiNode•21m ago•0 comments

Show HN: Panda, the world's first personal AI computer

https://pandax1.com
2•moezee1•22m ago•1 comments

How Is Inventing the Renaissance an SFF-Related Work?

https://www.exurbe.com/how-is-inventing-the-renaissance-an-sff-related-work/
1•mooreds•23m ago•0 comments

Packing Binary Is Fun

https://hereticpleb.vercel.app/blog/packing-binary-is-fun-actually
1•BurnerBurner•23m ago•0 comments

I killed every subscription business model in the market

https://vosu.ai/pricing
1•nafisfaysal•24m ago•1 comments

Writing the same book three times [audio]

https://www.swarmia.com/podcast/build-third-edition/
1•mooreds•24m ago•0 comments

As A.I. Makes Law Firms More Efficient, Clients Ask: 'Where's My Discount?'

https://www.nytimes.com/2026/09/26/business/dealbook/ai-law-discount-billable-hour.html
3•mooreds•27m ago•0 comments

"The refrigerator is dead": Samsung's AI fridges shut down after update

https://www.notebookcheck.net/The-refrigerator-is-dead-Samsung-s-AI-fridges-shut-down-after-updat...
4•RachelF•29m ago•0 comments

Research finds 485 chemicals in US pesticide products linked to breast cancer

https://www.theguardian.com/us-news/2026/sep/26/breast-cancer-us-pesticide-products
7•Teever•30m ago•0 comments

AI is not an alien, it's our offspring: Reframing the alignment problem

https://sovereignintelligence1313mhz.substack.com/p/the-titan-dilemma
1•sovereignai•32m ago•2 comments

Five arrested as UK police investigate major incident near RAF Fairford

https://www.bbc.co.uk/news/articles/cqrm99mm9l84o
2•FridayoLeary•33m ago•0 comments

Was Silent Reading Unusual During Augustine's Time?

https://www.historyofinformation.com/detail.php?entryid=4341
2•ryanscio•35m ago•0 comments

Self-parking car using genetic algorithm (2021)

https://trekhleb.dev/blog/2021/self-parking-car-evolution/
13•trekhleb•36m ago•3 comments

OpenAI pauses training of latest models after agents probed US Government sites

https://apnews.com/article/ai-openai-anthropic-agents-rogue-hack-2f8a2b9024d4f06793bcca12f8089d20
3•daniel_iversen•36m ago•0 comments

Why are the artists still starving?

https://shawnsomething.substack.com/p/why-are-the-artist-still-starving
4•Shawn_Something•38m ago•1 comments

From Geisha Face Paint to Servers, Sakai Chemical Emerges as AI Linchpin

https://www.bloomberg.com/news/articles/2026-09-27/from-geisha-face-paint-to-servers-sakai-chemic...
2•sbulaev•50m ago•0 comments

Harness as a Language

https://academy.dair.ai/papers/harness-as-a-language-a-minimalist-agent-framework-with-maximal-ex...
2•omarsar•51m ago•0 comments

Post-punk Detroit band Protomartyr's album release site mimics a bad hotel

https://protomartyrband.com
4•quaddoggy•52m 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".