frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Edge compute was making our API slower

https://blog.koodos.com/p/the-edge-of-glory
1•apuchitnis•1m ago•0 comments

Will We Still Drive Our Cars (Or Will Our Cars Drive Us)? (2000)

https://time.com/archive/6741539/will-we-still-drive-our-cars-or-will-our-cars-drive-us/
1•Apocryphon•1m ago•0 comments

Motorola signature 27 is unveiled

https://motorolanews.com/motorola-signature-27/
1•Cider9986•3m ago•0 comments

Microdnf: Minimal Python-Free Dnf

https://github.com/rpm-software-management/microdnf
1•nateb2022•7m ago•0 comments

Getting the most out of Opus 5.5 in Claude and Claude Code

https://claude.dev/blog/getting-the-most-out-of-opus-5-5/
2•mfiguiere•11m ago•0 comments

Show HN: DynamicNotch – An interactive, customizable notch utility for macOS

https://github.com/Hitjack007/DynamicNotch
1•Hitjack007•12m ago•0 comments

Diesel prices could crush Republicans in the heartland

https://www.natesilver.net/p/diesel-prices-could-crush-republicans
6•7777777phil•13m ago•0 comments

Meta's Muse Drags Down Stocks That Depend on 'Consumer Inertia'

https://www.bloomberg.com/news/articles/2026-09-22/meta-s-muse-drags-down-stocks-that-depend-on-c...
1•garbawarb•13m ago•0 comments

Ask HN: When is fine-tuning a small LLM worth it?

4•kooldeep7•15m ago•1 comments

Are we going to use the same Desktop UX forever? [video]

https://www.youtube.com/watch?v=V7AfAcQwLW0
3•upboundspiral•16m ago•1 comments

Better prompt caching for GPT‑6

https://openai.com/index/better-prompt-caching-for-gpt-6/
2•mehrdadrad•18m ago•0 comments

S&P Global Enters Agreement to Acquire OpenZeppelin

https://www.openzeppelin.com/news/spglobal-enters-agreement-to-acquire-openzeppelin
1•wslh•19m ago•0 comments

Z.ai says sorry for slurping up your code, open sources ZCode

https://www.theregister.com/security/2026/09/22/zai-says-sorry-for-slurping-up-your-code-open-sou...
3•sbulaev•20m ago•0 comments

Bootstrapping Frontier AI Governance by Mutualizing Risk

https://www.lawfaremedia.org/article/bootstrapping-frontier-ai-governance-by-mutualizing-risk
1•tfehring•21m ago•0 comments

'Same sense of urgency': UN chief compares AI risk to nuclear weapons

https://www.smh.com.au/politics/federal/australia-joins-call-for-ai-safeguards-amid-warnings-of-o...
3•andrewstuart•22m ago•1 comments

Agent's Memory Needs a Retention Policy

https://memanto.ai/blog/your-agents-memory-needs-a-retention-policy
1•supportm•22m ago•0 comments

Hayek's Federalism and the Making of European Integration [pdf]

https://cosmosandtaxis.org/wp-content/uploads/2022/09/masini_ct_vol10_iss11_12.pdf
1•brandonlc•23m ago•1 comments

Are Meta's smart glasses training AI for robots?

https://proton.me/blog/meta-smart-glasses-ai-robots
1•dgellow•25m ago•0 comments

Show HN: Shrewd – what I learned distilling LLM labels into local classifiers

https://github.com/sshah03/shrewd
3•sshah03•26m ago•0 comments

Show HN: Riftri – copy-on-write Git worktrees for running agents in parallel

https://twitter.com/KinfishT/status/2102093551601684897
1•kinfish•28m ago•0 comments

The JavaScript Midlife Crisis

https://maroun-baydoun.com/blog/javascript-midlife-crisis/
7•maroun-baydoun•28m ago•2 comments

Ask HN: Ideas for getting more GitHub stars?

3•NatalieTrono•30m ago•1 comments

Open source tool for building hierarchical agent loops

https://github.com/plasma-ai/fractal
2•NatalieTrono•31m ago•0 comments

How the Barcode Was Invented

https://worldofsystems.co/invention-of-the-barcode/
1•eawosika•33m ago•1 comments

I built a tool that reverse engineers competitors SEO

https://www.rankshawk.com
2•fanel•34m ago•1 comments

Egress Testing – Server that records inbound TCP and UDP packets

https://portleak.link/
1•Xtrato•38m ago•1 comments

A16Z is challenging Silicon Valley's love for drop-outs by launching a school

https://techcrunch.com/2026/09/22/a16z-is-challenging-silicon-valleys-love-for-drop-outs-by-launc...
2•wslh•39m ago•2 comments

Reading specs beats reading code

https://technative.eu/en/blog/specgetty-introduction/
2•mipselaer•42m ago•1 comments

Native apps written in TypeScript and CSS

https://github.com/geastack/examples
23•arbayi•44m ago•3 comments

Agent manager now with mouse support

https://agent-manager.dev/writing/mouse-support/
5•Michaelov•45m ago•2 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".