frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

AI and the Collapse of the Www

https://www.nber.org/papers/w35344
1•jmsflknr•1m ago•0 comments

Not just for rich people: the progressive case for air conditioning

https://www.theguardian.com/commentisfree/2026/jun/29/progressive-case-for-air-conditioning-clima...
2•rustoo•4m ago•0 comments

DeepSeek Releasing Mid July

https://files.catbox.moe/0j57v9.png
1•RIshabh235•6m ago•1 comments

Compile differentiable audio models to real-time DSP

https://github.com/cucuwritescode/adac
1•cucuwritescode•8m ago•1 comments

Yeasound RIC800 Hearing Aids Review: Good Audio, Glitchy App

https://www.wired.com/review/yeasound-ric800-hearing-aids/
1•joozio•10m ago•0 comments

My Mac timeline app got MCP. Cron to vector DB was the real use

https://sidefyapp.com/blog/mcp-automation-beyond-chat-2026-06-27/
1•sha2kyou•11m ago•0 comments

NASA's X-59 "frankenjet" tests supersonic flight without the sonic boom

https://arstechnica.com/gadgets/2026/06/nasas-x-59-frankenjet-tests-supersonic-flight-without-the...
2•LorenDB•11m ago•0 comments

Children in West Bank are being killed by Israel without accountability

https://www.theguardian.com/world/2026/jun/29/is-it-israels-aim-to-kill-our-children-west-bank-pa...
6•abdusco•14m ago•0 comments

The Next Chapter of PrimeTek

https://primeui.dev/nextchapter
1•schneefux•15m ago•0 comments

GitHub Copilot – 5 years ago today (2021)

https://github.blog/news-insights/product-news/introducing-github-copilot-ai-pair-programmer/
2•petercooper•17m ago•0 comments

Gatekeeping the Frontier: When AI Access Becomes a National Security Concern

https://www.rusi.org/explore-our-research/publications/commentary/gatekeeping-frontier-when-ai-ac...
1•ironyman•19m ago•0 comments

Tell HN: Delete Google

3•sourcecodeplz•20m ago•2 comments

Expo adds AgeRange module wrapping Apple and Google age-verification APIs

https://docs.expo.dev/versions/latest/sdk/age-range/
1•c99e•20m ago•1 comments

Radiology's Last Exam (RadLE)

https://arxiv.org/abs/2509.25559
1•AFF87•25m ago•0 comments

The CEO of Mullvad is the main financer of the far-right Swedish Örebro party

https://det.social/@lostgen/116820546568940358
3•Risse•26m ago•2 comments

Show HN: Re:Zero – Start building from zero

https://www.rezero.md/en/library
1•haebom•26m ago•0 comments

Ask HN: GLM-5.2 FP8 vs. BF16

1•JoelJacobson•27m ago•0 comments

Miyake Event

https://en.wikipedia.org/wiki/Miyake_event
1•simonebrunozzi•33m ago•0 comments

Dame Penelope Keith, star of The Good Life, dies aged 86

https://news.sky.com/story/dame-penelope-keith-star-of-the-good-life-dies-aged-86-13558844
1•austinallegro•34m ago•0 comments

The true cost of software development, updated for the world of AI

https://daniel-payne-keldan-systems.medium.com/how-much-800def6bb346
1•daniel-payne•35m ago•0 comments

Ask HN: What is happening with the current AI startup ecosystem?

2•kefal•36m ago•0 comments

The Peak and Collapse of Digital Research

https://nemanjatrifunovic.substack.com/p/the-peak-and-collapse-of-digital
3•rbanffy•36m ago•0 comments

Show HN: Shacam for macOS – Screen sharing you can touch

https://shacam.com
1•renatoworks•38m ago•0 comments

Trump may be mystery patient in case of 79yo getting experimental obesity drug

https://arstechnica.com/health/2026/06/trump-may-be-mystery-patient-in-odd-case-of-79yo-getting-e...
1•rbanffy•38m ago•0 comments

"Perfumed Palaces: backrooms roguelike vibe-coded in <30 days"

1•MUTHRI•38m ago•1 comments

I have an operating system kernel that I wrote myself; it's called ValiantCore

1•finndev•43m ago•0 comments

The Friction Collapse

https://deimos28.substack.com/p/the-friction-collapse
1•deimos_28•45m ago•0 comments

NASA tests AI medic for astronauts too far from Earth to call a doctor

https://www.theregister.com/ai-and-ml/2026/06/27/nasa-tests-ai-medic-for-astronauts-too-far-from-...
1•pseudolus•46m ago•0 comments

Apple accuses India of 'copy-pasting' rivals' claims in antitrust investigation

https://www.reuters.com/business/media-telecom/apple-accuses-india-copy-pasting-rivals-claims-ant...
1•jmsflknr•47m ago•0 comments

I have an operating system kernel that I wrote myself; it's called ValiantCore

1•finndev•47m 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".