frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Spotify Partners With Bookshop.org for physical book sales

https://newsroom.spotify.com/2026-02-05/bookshop-partnership-page-match-announcement/
1•kristianp•3m ago•0 comments

Does Fast Mode Do Anything?

https://doesfastdoanything.com/
2•luu•5m ago•0 comments

Max severity SonicWall SMA1000 flaw now exploited in attacks

https://www.bleepingcomputer.com/news/security/max-severity-sonicwall-sma1000-flaw-now-exploited-...
1•wondersky•7m ago•0 comments

Resident Evil 1995-08-04 Prototype: Full Disk and ASM Disassembly Analysis [video]

https://www.youtube.com/watch?v=NFodrCsNJaI
1•stein1946•8m ago•0 comments

Ukraine hits second major tech site, expanding range of targets inside Russia

https://www.reuters.com/world/europe/russias-yandex-says-second-data-centre-hit-by-drone-attack-2...
1•JumpCrisscross•10m ago•0 comments

Every lawsuit against an AI company

https://ailawsuittracker.com/
1•marciob•11m ago•0 comments

District Six

https://en.wikipedia.org/wiki/District_Six
1•thunderbong•15m ago•0 comments

How to Pronounce English Like a Native

https://youglish.com/
1•Tomte•19m ago•0 comments

The Awesome Power of Constraint Solvers

https://btmc.substack.com/p/the-awesome-power-of-constraint-solvers
1•zdw•21m ago•0 comments

Show HN: Localci, run your GitHub Actions jobs locally before you push

https://github.com/peters/localci
1•petersunde•25m ago•0 comments

Electric two-wheelers offer mobility to some women

https://www.pakistantoday.com.pk/2026/06/17/electric-two-wheelers-offer-mobility-to-some-women-bu...
1•doener•31m ago•0 comments

Gemini API RLS notes: 3.7-flash now routed to 3.8-flash, 3.5->3.6

https://ai.google.dev/gemini-api/docs/changelog
2•cagey•52m ago•1 comments

CortextAI – A private, offline AI workspace for email, notes, tasks, and files

https://cortextai.saposs.com
1•jimmy_lee•56m ago•0 comments

6 Months of Bubbles

https://www.gordonmclean.co.uk/2026/10/09/6-months-of-bubbles/
2•rdmuser•58m ago•0 comments

Optimization is the root of all evil

https://12gramsofcarbon.com/p/the-optimization-theory-of-everything
2•theahura•58m ago•0 comments

RAOP playback to HomePod 2 stopped working after HomePod OS 27 update

https://gitlab.freedesktop.org/pipewire/pipewire/-/work_items/5516
1•chazeon•59m ago•0 comments

Trump approves tiny 'cars of the near future'

https://thehill.com/policy/energy-environment/5635349-donald-trump-approves-tiny-cars/
3•harambae•1h ago•0 comments

SpaceX Raised $111B – It Needs More [video]

https://www.youtube.com/watch?v=9SAgLMahZm4
3•koolhead17•1h ago•0 comments

Assorted things I've been mulling over regarding agents in the economy

https://twitter.com/patrickc/status/2108706907859116280
1•MrBuddyCasino•1h ago•0 comments

Terence Tao on "Math 2.0" [pdf]

https://teorth.github.io/tao-web/slides/math-2-0-caltech-2026.pdf
1•atdt•1h ago•2 comments

Understanding why you'd use Effect TS

https://cm.xyz/blog/understanding-why-youd-use-effect-ts
3•nilsbunger•1h ago•0 comments

The story of utopias by Lewis Mumford

https://www.gutenberg.org/ebooks/75654
2•doener•1h ago•0 comments

Vegetables are half as nutritious as they were in the 1960s

https://www.telegraph.co.uk/business/2026/10/07/vegetable-nutrition-halved-since-60s/
14•WarOnPrivacy•1h ago•11 comments

A persistent accuracy ceiling in automated verbal deception detection

https://arxiv.org/abs/2610.12118
1•sbulaev•1h ago•1 comments

wBlock 3.2 – The next-generation ad blocker for Safari

https://github.com/0xCUB3/wBlock/releases/tag/3.2.0
1•nntwozz•1h ago•0 comments

Ongoing lawsuits allege GLP-1s can cause serious harm; we don't know how often

https://text.npr.org/nx-s1-5996652
1•1659447091•1h ago•0 comments

A Programmable Readout Pixel Image Sensor

http://image-sensors-world.blogspot.com/2026/10/programmable-readout-pixel.html
1•giuliomagnifico•1h ago•0 comments

The Unreasonable Effectiveness of Linear Prediction as a Perceptual Metric

https://arxiv.org/abs/2310.05986
1•E-Reverance•1h ago•0 comments

Weball

https://www.funwithcomputervision.com/weball/
1•maxutility•1h ago•1 comments

Europe confident its rules can thwart rogue AI

https://www.rnz.co.nz/news/science-and-technology/1824809/europe-confident-its-rules-can-thwart-r...
6•billybuckwheat•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".