frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Canadian Governenment says it has detected suspected AI-assisted cyberattack

https://www.cbc.ca/news/canada/federal-government-suspected-ai-cyberattack-9.7442795
1•petersonh•1m ago•0 comments

100% Incremental Rollback Netcode (Easel Dec 2026 Update)

https://easel.games/blog/2026-dec-update
1•BSTRhino•2m ago•1 comments

Show HN: Icey, a Highschooler's FPGA Board

https://github.com/darshg321/icey
1•darshg321•8m ago•0 comments

Show HN: Gantta-Claus

https://dawnofthe.dad/gantta-claus
1•userundefined•8m ago•0 comments

Advent of Chess (2026)

https://www.adventofchess.com/
1•autocorr•10m ago•0 comments

Rock Auto Stops Selling in Arizona

https://www.aztechcouncil.org/news/state-wants-11m-from-online-auto-parts-retailer-rockauto/
1•gscott•11m ago•0 comments

Perplexity AI's Comet collects browsing data after users try to restrict access

https://www.reuters.com/business/perplexity-ais-comet-browser-snoops-users-who-shut-off-tracking-...
2•bhrlady•16m ago•0 comments

Show HN: Termexo Fleet

https://github.com/gemron/Termexo-Fleet
1•gemron•28m ago•0 comments

The discipline required to create the life you want

https://ryanholiday.medium.com/the-discipline-required-to-create-the-life-you-want-117ed639e9a1
2•qikouki•36m ago•1 comments

Show HN: A game for learning computational neuroscience

https://spike.blackmetal.tech/
1•ixaxaar•37m ago•0 comments

Show HN: Adversarial Feed 100 fresh adversarial tests for AI agents every month

https://adversarialfeed.com/
1•AdamDiStefanoAI•40m ago•0 comments

Women's Preferences for Penis Size: A New Research Method Using 3D Models

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0133079
5•Jun8•41m ago•1 comments

OpenAI, Elon Musk's Wild Plan to Set Artificial Intelligence Free

https://www.wired.com/2016/04/openai-elon-musk-sam-altman-plan-to-set-artificial-intelligence-free/
5•nastynate•41m ago•1 comments

Polytoria Goes Open Source

https://blog.polytoria.com/polytoria-goes-open-source/
1•roludemaru•45m ago•0 comments

Artex may be dangerous, but it's also dumb enough to hack itself

https://www.theregister.com/security/2026/11/30/artex-may-be-dangerous-but-its-also-dumb-enough-t...
2•magoghm•46m ago•0 comments

What If Your Dog Could Talk

https://campedersen.com/talking-dog
3•ecto•49m ago•0 comments

Israel to Install 200k Nvidia Chips in Data Centers by 2030

https://finance.yahoo.com/technology/ai/articles/israel-install-200-000-nvidia-170000871.html
4•LopRabbit•54m ago•0 comments

The Tidelift lifter program is ending Dec 31

https://twitter.com/JoshuaKGoldberg/status/2127498095823056961
2•stubish•54m ago•1 comments

ModelOS: A bare-metal GPU OS for LLM inference and training

https://github.com/yunwei37/modelos
1•yunwei37•55m ago•0 comments

Claude silently prevents security camera code from describing ethnicity, age

https://twitter.com/anorthwall/status/2127113022972088758
9•United857•57m ago•3 comments

Cloudflare Clairic System One Extraction Models Are Now Open-Weight

https://blog.cloudflare.com/open-clairic/
7•reddmachine•1h ago•1 comments

Russet is an open-source Rust FUSE server for plain and encrypted APFS on Linux

https://github.com/thatjuan/russet
2•0x6A75616E•1h ago•0 comments

Show HN: GuestGate – Leak-proof transparent proxy for VMware VMs

https://github.com/threatexpert/GuestGate
1•gonc_cc•1h ago•0 comments

Show HN: Bakodo.jp – Free Online Barcode Generator (111 Formats)

https://bakodo.jp/
2•wasmgame845•1h ago•0 comments

Nvidia brings 200k GPUs to Israel in $20B AI infrastructure push

https://www.calcalistech.com/ctechnews/article/dxjgchqry
3•myth_drannon•1h ago•0 comments

Consciousness Across Three Worldviews

https://www.noemamag.com/consciousness-across-three-worldviews/
3•argentinian•1h ago•0 comments

AgentGuard – Zero-dependency loop and spend guardrails for AI agents

https://github.com/nemor1-bit/agentguard
3•nremor1•1h ago•0 comments

The Copacetic Accord

https://therobot.institute/r/the-accords
1•matthewsinclair•1h ago•0 comments

Next-generation mosquito net saving millions from malaria : Gates Foundation

https://www.gatesfoundation.org/stories/new-mosquito-net-saving-lives-malaria
4•Alien1Being•1h ago•0 comments

Cause of FAA systems failure that grounded flights nationwide identified

https://www.local3news.com/regional-national/cause-of-faa-systems-failure-that-grounded-flights-n...
3•firesteelrain•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".