frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Terminal Gym – a Claude mod that makes you do pushups between prompts

https://github.com/DrumAndCode/terminal-gym
1•heynaitik•3m ago•0 comments

An Algorithmic Failure Beneath the Secret Ballot

https://blog.citp.princeton.edu/2026/08/03/an-algorithmic-failure-beneath-the-secret-ballot/
1•leecoursey•5m ago•0 comments

The KV Cache Is the New Memory Wall

https://jaehun.me/en/posts/paper-2609-30854v1/
2•acossta•6m ago•0 comments

The Server Side Cloud Swift SDK

https://cloud.google.com/blog/topics/developers-practitioners/introducing-the-server-side-cloud-s...
2•frizlab•6m ago•1 comments

Holocron: The Backup of Last Resort

https://smyck.net/2026/10/03/holocron-the-backup-of-last-resort/
1•ahlCVA•10m ago•0 comments

Show HN: I made a browser-based instrument out of the CHOMPI CLUB source

https://www.temeculadsp.com/nibbi/play
1•johnwheeler•14m ago•0 comments

How to Create More Than You Think

https://th3realsacha.substack.com/p/the-power-of-overthinking
1•yarapavan•14m ago•0 comments

We asked three AIs about the risks of AI. They disagreed with their makers

https://vocemundi.com/we-asked-three-ais-about-the-risks-of-ai-they-disagreed-with-their-makers-a...
1•thomaslaurent•16m ago•0 comments

13% of my website visitors block Google Analytics

https://markosaric.com/google-analytics-blocking/
2•birdculture•17m ago•1 comments

What's the Date?

https://www.lesswrong.com/posts/vzKWsEskYBEWTwpBP/what-s-the-date
1•cubefox•19m ago•0 comments

Using Theme park rides and smartphones for demonstrating Newtonian mechanics

https://iopscience.iop.org/article/10.1088/1361-6404/aea271
1•bryanrasmussen•20m ago•1 comments

Being a good CPU neighbor (2016)

https://barro.github.io/2016/02/being-a-good-cpu-neighbor/
1•bilegeek•21m ago•0 comments

Show HN: thezoomist.com – Closer to Everything

https://thezoomist.com/
1•mmdtdev•24m ago•0 comments

Software 2.0 writes Software 1.0

https://www.giete.ma/blog/software-2-0-writes-software-1-0
2•gietema•25m ago•0 comments

Building Serendipity (2011)

https://randsinrepose.com/archives/building-serendipity/
1•mooreds•25m ago•0 comments

The clanker torture nexus manifesto

https://jregory.substack.com/p/why-we-are-torturing-clankers
1•Murfalo•30m ago•0 comments

Docker has always used microVMs (well since 2016)

https://dave.recoil.org/docker-has-always-used-microvms/
4•avsm•32m ago•0 comments

What we learned running an agentic hackathon with 30k+ hackers

https://twitter.com/rvivek/status/2106264394414108925
2•rvivek•35m ago•0 comments

It's Time to Rename Cybersecurity Awareness Month

https://semgrep.dev/blog/2026/rename-cybersecurity-awareness-month/
1•mooreds•35m ago•0 comments

Ask HN: How are you preparing your children for an AI-powered world?

1•pwython•35m ago•3 comments

City building games have a Soul Problem pt.2

https://www.radical-elements.com/minor-epiphanies/city-building-games-have-a-soul-problem-pt2
2•lexx•36m ago•0 comments

Israel: More Measures to Prevent Civilian Casualties Than Any Other Nation

https://www.newsweek.com/israel-implemented-more-measures-prevent-civilian-casualties-any-other-n...
3•Tomte•37m ago•1 comments

Offloading System Updates to My NAS

https://ls-root.de/posts/download-updates-on-unraid/
1•ls-root•38m ago•0 comments

Australia May Have Just Solved the Housing Crisis [video]

https://www.youtube.com/watch?v=QtZfbWOkoIY
1•thelastgallon•38m ago•1 comments

One Line, 25M Revenue

https://huntersoftwareconsulting.com/posts/2026-10-02-one-line-25m/
2•mooreds•41m ago•0 comments

The UK's Sovereign AI Lab

https://cosine.sh
2•maxall4•42m ago•0 comments

How Firestore Matches Realtime Queries

https://rockwotj.com/blog/firestore-query-matching/
2•Malp•42m ago•0 comments

Doffly – Know Before It Goes Down

https://www.doffly.pro/
1•anelkabag•42m ago•1 comments

Vietnam's economy grew 9.95% in Q3, fastest pace in 4 years

https://asia.nikkei.com/economy/vietnam-s-economy-grew-9.95-in-q3-fastest-pace-in-4-years
1•michaelhillaert•42m ago•0 comments

Show HN: Agentlytics – cookieless analytics your AI agent can read and act on

https://measuremy.site
2•developeron29•44m 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".