frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The real mathematics is the one that we dream – David Bessis

https://davidbessis.substack.com/p/the-real-mathematics-is-the-one-that
2•lioeters•6m ago•0 comments

Silicon Valley Splits over Closing the Borders to Chinese A.I

https://www.nytimes.com/2026/07/25/technology/open-source-silicon-valley-china.html
2•dkobia•7m ago•0 comments

Nepo – the largest database of nepotism and nepo babies

https://www.nepodb.com/
2•poppypetalmask•13m ago•0 comments

Triton: DirectX 11 driver for QEMU

https://blog.getutm.app/2026/introducing-triton-directx-11-driver-for-qemu/
1•generichuman•14m ago•0 comments

Show HN: Houhou – Resilience Policies Package for TypeScript Async Functions

https://hou2.vercel.app/
1•smokeeaasd•16m ago•0 comments

Stinkpot: SQLite-Backed Shell History

https://tangled.org/oppi.li/stinkpot
1•birdculture•20m ago•0 comments

Claude Usage Public Leaderboard

https://www.claudeusage.com/leaderboard
1•bazarkua•22m ago•0 comments

How the World Cup impacted global health?

https://ouraring.com/blog/2026-world-cup-data-story/
1•jenthoven•22m ago•0 comments

Books can't piss me off

3•emerongi•25m ago•1 comments

Should you use AI for a task? Here's a simple way to decide

https://www.theguardian.com/commentisfree/2026/jul/24/should-you-use-ai
1•flopsamjetsam•29m ago•2 comments

Brazil denies visas to U.S. officials who aimed to impugn electoral system

https://www.washingtonpost.com/world/2026/07/24/us-sending-envoys-question-brazilian-electoral-sy...
2•matheusmoreira•34m ago•2 comments

Dht-spy – BitTorrent DHT telemetry

https://dhtspy.net/
1•ogurechny•40m ago•1 comments

Show HN: Desktui – a remote desktop client for your terminal

https://github.com/mishushakov/desktui
3•ushakov•43m ago•0 comments

DeepSeek pause fundraise after comments on compute gap to US leaked (transcript) [pdf]

https://github.com/demo-zexuan/liang-wenfeng-investor-meeting-2026-7-22/blob/master/%E6%A2%81%E6%...
10•oliculipolicula•43m ago•0 comments

Htmx 4: The Game

https://swag.htmx.org/products/htmx-4-the-game
3•geophph•57m ago•0 comments

Show HN: Routeveil – Shared-element and page transitions engine for React Router

https://www.routeveil.dev/lab/shared-elements
2•milkeviich•1h ago•0 comments

The Assumption of Maria (near future sci-fi)

https://www.lightspeedmagazine.com/fiction/the-assumption-of-maria/
5•swernli•1h ago•0 comments

The Dundee Time Capsule

https://www.greatwardundee.com/the-home-front/the-dundee-time-capsule/
1•xg15•1h ago•0 comments

"Loneliness influencers" are all the rage, but everyone is wrong about them

https://preta6.substack.com/p/loneliness-influencers-are-all-the
2•ropili•1h ago•0 comments

For coding agents, real-time collaboration beats the "wisdom of the crowd"

https://ykdojo.github.io/antigravity-cloud-run/experiments/collaboration-vs-wisdom-of-the-crowd/
2•ykev•1h ago•0 comments

Quantum internet leaves the lab

https://news.northwestern.edu/stories/2026/07/quantum-internet-leaves-the-lab
5•hhs•1h ago•0 comments

Algorithm-designed photonic circuits beyond human intuition

https://seas.harvard.edu/news/algorithm-designed-photonic-circuits-beyond-human-intuition-0
2•hhs•1h ago•0 comments

Where Your Mind Goes When You Stop

https://lanternhours.substack.com/p/where-your-mind-goes-when-you-stop
1•cuongvtran•1h ago•0 comments

Why Losing an Argument Feels Like Losing Yourself

https://lanternhours.substack.com/p/why-losing-an-argument-feels-like
2•cuongvtran•1h ago•0 comments

Clinical Failure Rates over the Decades: Yikes

https://www.science.org/content/blog-post/clinical-failure-rates-over-decades-yikes
15•EA-3167•1h ago•9 comments

Trump's Push to Build Data Centers for the US Military

https://www.motherjones.com/politics/2026/07/data-centers-us-military-bases-public-lands/
3•cdrnsf•1h ago•0 comments

Ubuntu Pro auth service down?

https://ubuntu.com/login?next=/pro/attach?
1•spl757•1h ago•1 comments

Pangrandomonium: Rhizome Function Anagram Random Generator

https://zenodo.org/records/21551292
1•OCTADE•1h ago•1 comments

Wreckage of 1952 Pan Am plane crash found near Puerto Rico

https://www.theguardian.com/world/2026/jul/22/wreckage-found-1952-pan-am-plane-crash-air-safety-p...
2•firasd•1h ago•0 comments

Show HN: Cross-Platform Flutter and React-Native Plugin – FFmpeg-Kit-Extended

1•akashskypatel•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".