frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Department of War just released the third tranche of records

https://www.war.gov/UFO/release/03/
1•aggrrrh•1m ago•0 comments

Old games feel "hard" because modern emulators have layers of abstraction

https://twitter.com/lauriewired/status/2065553747078709500
1•tosh•5m ago•0 comments

For NBA fans: If you loved 82-0 you'll love this

https://nbabrawl.netlify.app
1•Mwalwala•9m ago•0 comments

Israeli firm BlackCore suspected of meddling in New York and Scotland votes

https://www.reuters.com/world/israeli-firm-blackcore-also-suspected-meddling-nyc-scotland-votes-f...
3•pera•9m ago•0 comments

Anthropic disables top-tier AI models outside US

https://www.reuters.com/technology/us-blocks-foreign-access-anthropics-most-advanced-ai-models-ax...
4•apples_oranges•22m ago•0 comments

Ask HN: What Are You Working On?

2•eisleggje•24m ago•0 comments

Drinkner – Matches your bar to the 102 IBA cocktails, AI only on miss

https://www.drinkner.com/
2•alexsa•24m ago•0 comments

IP Crawl: A living atlas of open webcams discovered on the public internet

https://ipcrawl.com/?sort=favorites
2•jumploops•25m ago•0 comments

Self-Discovery Through Archaeology

https://kesjr.com
2•promptfluid•31m ago•0 comments

Agent just scaffolded a project from 2020

https://developer.microsoft.com/blog/your-agent-just-scaffolded-a-project-from-2020
2•waldekm•34m ago•0 comments

Loop Engineering: Designing loops that prompt coding agents

https://addyosmani.com/blog/loop-engineering/
4•vantareed•35m ago•0 comments

Thames Ironworks

https://diamondgeezer.blogspot.com/2026/06/thames-ironworks.html
2•zeristor•43m ago•0 comments

Are Mythos and Fable pure marketing?

2•2muchtime•47m ago•1 comments

Google Earth Flight Simulator

https://earth.google.com/web/
2•sourcecodeplz•47m ago•0 comments

Ludwig II of Bavaria: The Tragic Tale of the Swan King

https://www.historicmysteries.com/history/ludwig-ii-swan-king/25735/
2•joebig•48m ago•0 comments

Show HN: Browse the web, from the console, using a Textual Agent Interface

https://webcli.sh
2•keepamovin•49m ago•0 comments

Interoception: The hidden sense of how you feel inside

https://www.technologyreview.com/2026/06/12/1138833/inside-interoception-brain-body/
5•joozio•51m ago•0 comments

JRE 2513 – Dean Radin

https://www.youtube.com/watch?v=4Uk0_1yqdJo
1•keepamovin•52m ago•0 comments

I just found the Mac app grand percpective but for free

https://github.com/Prithvi-Web/Treemap
1•DaGoat487•59m ago•1 comments

From a Slack link to production in under 48 hours: cloning Shopify's "Quick"

https://courtyard.io/blog/post/from-a-slack-link-to-production-in-under-48-hours-cloning-shopifys...
1•joetyson•1h ago•0 comments

Jetterix Pressure Nozzle Review 2026 – Worth Buying or Just Hype?

https://finance.yahoo.com/sectors/technology/articles/jetterix-pressure-nozzle-urgent-report-1739...
1•palszaty•1h ago•0 comments

Sandboxing is 47 years old. What changed is who's in the box.

https://cyrusradfar.com/thoughts/sandboxing-from-vms-to-agents
2•cyrusradfar•1h ago•0 comments

A new pkg.go.dev API for Go

https://opensource.googleblog.com/2026/06/a-new-pkggodev-api-for-go.html
1•rcy•1h ago•0 comments

Novo Nordisk reports cyberattack as UK gives Wegovy pill the nod

https://www.theregister.com/security/2026/06/12/novo-nordisk-says-hackers-stole-clinical-trial-da...
3•jruohonen•1h ago•1 comments

Show HN: Skill for your agent to visualize your gbrain and Obsidian

https://github.com/vladignatyev/brain-map-skill
1•v_ignatyev•1h ago•0 comments

Weaker bonds make for more impact-resistant polymers

https://newatlas.com/materials/weaker-bonds-impact-resistant-polymers/
1•breve•1h ago•0 comments

Yoti does not report GrapheneOS users to the authorities

https://www.yoti.com/blog/yoti-does-not-report-grapheneos-users-to-the-authorities/
3•Cider9986•1h ago•1 comments

Musk's War on European Democracy

https://ecfr.eu/article/musks-war-on-european-democracy-how-to-open-up-x-and-fight-back/
5•jruohonen•1h ago•0 comments

Estimating No-Cot Task-Completion Time Horizons of Frontier AI Models

https://www.lesswrong.com/posts/SieLowPgNgRSPGhFw/estimating-no-cot-task-completion-time-horizons...
1•kqr•1h ago•0 comments

Norway to deploy largest fleet of 'flying' electric ferries

https://candela.com/newsroom/norway-to-deploy-worlds-largest-fleet-of-flying-electric-ferries/
1•robin_reala•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".