frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Any good ways to extend Codex sessions?

1•tabmate•2m ago•0 comments

AI Value Capture – The Shift to Model Labs

https://newsletter.semianalysis.com/p/ai-value-capture-the-shift-to-model
1•nsoonhui•8m ago•0 comments

Show HN: Vibe, a single-header C networking library for Linux

https://github.com/xtellect/vibe
1•enduku•13m ago•0 comments

Ask HN: Does Claude use 'prior' in a Bayesian sense more than English?

1•slake•14m ago•0 comments

Ruby Gems and Go Modules Impersonate Dev Tools to Steal Secrets and Poison CI

https://socket.dev/blog/malicious-ruby-gems-and-go-modules-steal-secrets-poison-ci
1•ilreb•15m ago•0 comments

A Three Horizons Framework for Government Reform

https://www.eatingpolicy.com/p/a-three-horizons-framework-for-government
1•brandonb•18m ago•0 comments

Health care costs reach a breaking point

https://newsroom.heart.org/news/health-care-costs-reach-a-breaking-point
2•geox•19m ago•0 comments

10-day training cycle that Sabastian Sawe used to run a sub-2 marathon

https://www.runnersworld.com/uk/training/marathon/a71027488/sebastian-sawe-training-cycle/
2•canucker2016•19m ago•2 comments

The Fick equation and your heart

https://www.empirical.health/blog/fick-equation-vo2max-heart/
1•brandonb•19m ago•0 comments

Employee Fired After Discovered She Was Using "Thinking Face" Filter in Meetings

https://twitter.com/i/status/2049977987781824666
3•lando2319•20m ago•0 comments

Show HN: Winpodx – run Windows apps on Linux as native windows

https://github.com/kernalix7/winpodx
2•kernalix7•22m ago•0 comments

Claude Code is going to fail you eventually, and you need to be ready

https://claudefolio.com/blog/claude-code-is-going-to-fail-you-eventually-and-you-need-to-be-ready
2•VaderMaster•23m ago•0 comments

US-Indian Spacecraft Captures Mexico City Subsidence

https://science.nasa.gov/photojournal/us-indian-spacecraft-captures-mexico-city-subsidence/
2•hsuresh•27m ago•0 comments

Codex subscription in an Electron app and Chromium Browser

https://github.com/chillysbabybackribs/Goldenboy-YouTube-Reddit-Extractor
1•goldenboychrome•30m ago•1 comments

Termshot: Create screenshots based on terminal command output

https://github.com/homeport/termshot
1•sea-gold•32m ago•0 comments

KDE at 30

https://kde.org/anniversaries/30/
2•kristianp•34m ago•0 comments

Letter from van Gogh: "No, [ ], learn how to dance, or fall in love"

https://www.webexhibits.org/vangogh/letter/17/W01.htm
1•jdcampolargo•35m ago•0 comments

KDE Frameworks

https://invent.kde.org/frameworks
1•kristianp•35m ago•0 comments

OpenWarp

https://openwarp.zerx.dev
16•zero-lab•35m ago•11 comments

KV Cache Locality: The Hidden Variable in Your LLM Serving Cost

https://ranvier.systems/2026/04/30/kv-cache-locality-the-hidden-variable-in-your-llm-serving-cost...
1•mindsaspire•37m ago•0 comments

Brain scans reveal 3 ADHD subtypes

https://www.washingtonpost.com/health/2026/04/30/adhd-subtype-extreme-brain-scans/
3•brandonb•42m ago•0 comments

The Hearts of the Super Nintendo

https://fabiensanglard.net/snes_hearts/
4•droppedasbaby•44m ago•1 comments

What Is the Most Common Type of Planet in the Galaxy?

https://www.universetoday.com/articles/what-is-the-most-common-type-of-planet-in-the-galaxy
4•johnbarron•47m ago•0 comments

Samsung warns memory shortage will be worse next year

https://mashable.com/article/samsung-memory-shortage-ram-ai-worse-2027
4•ripe•47m ago•1 comments

Amazon Free Cash Flow drops 95%

https://ir.aboutamazon.com/news-release/news-release-details/2026/Amazon-com-Announces-First-Quar...
4•johnbarron•47m ago•1 comments

When you save money, you buy freedom

https://herbertlui.net/when-you-save-money-you-buy-freedom/
3•littlexsparkee•52m ago•2 comments

Veryl 0.20.0: logic synthesis and type inference are supported

https://veryl-lang.org/blog/announcing-veryl-0-20-0/
2•dalance•52m ago•0 comments

Garmin-health-data – Own your Garmin data analysis

https://github.com/diegoscarabelli/garmin-health-data
3•diegoscara•56m ago•1 comments

Text-to-CAD

https://github.com/earthtojake/text-to-cad
2•softservo•58m ago•0 comments

This photo has no color – how Lippmann Plates work

https://www.youtube.com/watch?v=-DyrBDsKA5s
2•freetime2•59m 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•12mo ago

Comments

epmatsw•12mo ago
restore and maybe switch are the two missing ones I think. Rebase for me, but that’s preference. Cherry-pick too.
rentonl•12mo ago
my co-workers used to think I was an expert in git. In reality, they memorized 7 commands while I memorized 15
hbogert•12mo ago
i memorized that a commit tree is a ordered set of patches. Everything goes from there.
Areibman•12mo ago
In similar fashion, this site has saved me countless hours fixing common git issues https://ohshitgit.com
the__alchemist•12mo ago
I need to alias:

  git add .
  git commit -am "descriptive name"
  git push

to:

  git sync "descriptive name"
horsawlarway•12mo 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•12mo 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•12mo 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•12mo ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•12mo 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•12mo 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•12mo 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•12mo ago
Maybe not essential, but reflog is invaluable.

I also like to separate fetch from pull (fetch + merge).

foobarkey•12mo ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•12mo ago
Both are essential.
realaleris149•12mo ago
There are other commands?
incomplete•12mo 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•12mo ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•12mo ago
It missed "git switch" and "git restore".