frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Rcarmo/womprat: A single-binary Windows client to access machines on a tailnet

https://github.com/rcarmo/womprat
1•rcarmo•2m ago•0 comments

Ukraine Is Not Losing. Russia Is Not Winning

https://www.theatlantic.com/ideas/2026/06/ukraine-war-momentum-shift/687444/
1•breve•3m ago•0 comments

Tests suggest Russian satellites can jam GPS on a continental scale

https://arstechnica.com/space/2026/06/tests-suggest-russian-satellites-can-jam-gps-on-a-continent...
1•kyrofa•4m ago•0 comments

The World Ransomware

https://www.lampysecurity.com/post/inside-the-world-ransomware
1•lampysecurity•5m ago•0 comments

State of DDoS 2026 – Attack trends, vectors, and mitigation data

https://flowtriq.com/state-of-ddos
1•jacob_masse•6m ago•0 comments

Closing the security gap in space systems

https://blog.satsearch.co/2026-06-09-spotlight-closing-the-security-gap-in-space-systems-with-terma
1•kartikkumar•7m ago•0 comments

Ask HN: Will you invest in SpaceX IPO?

1•roschdal•7m ago•3 comments

Agentic surface area as an operating metric

https://arizenai.com/agentic-surface-area/
1•arizen•8m ago•0 comments

Albania Is Not for Sale: Kushner's $4B Resort Triggers'Flamingo Revolution'

https://www.yacnews.com/albania-is-not-for-sale-kushners-4-billion-resort-triggers-flamingo-revol...
2•ortr•9m ago•0 comments

Accelerating Feed-Forward Networks for Disaggregated AI Inference

https://www.d-matrix.ai/how-accelerating-feed-forward-networks-in-disaggregated-inference-pipelin...
1•berlianta•10m ago•0 comments

Pythia 1.4B reproduces 3.6% of training samples verbatim given 950-token prompts

https://www.ret2libc.com/posts/Data-Extraction-Lab1/
1•werew•10m ago•0 comments

Subarr – a queue and coverage GUI for the Subgen/Bazarr subtitle stack

https://github.com/coaxk/subarr
1•gbh•11m ago•0 comments

Ask HN: Are you also experiencing issues with Azure Redis in Western Europe?

2•fpereiro•11m ago•0 comments

Ubuntu 24.04/26.04 Nginx Security Update Breaks Many Dynamic Modules

https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/2155992
1•EgoProblem•12m ago•0 comments

OpenLoomi: SOTA Holistic Context Graph for AI Agents

https://github.com/melandlabs/openloomi
1•peefy•13m ago•0 comments

Slangify: The Case for DSLs in LLM Workflows

https://slangify.org/where
2•librasteve•14m ago•1 comments

A free diagnostic for the Claude Certified Architect exam

https://www.claudecertifiedarchitects.com/
1•jockorules•14m ago•0 comments

Lovable Cloud: Expensive and Opaque at Scale

https://hal9.com/articles/lovable-cloud-expensive-and-opaque-at-scale
1•javierluraschi•14m ago•0 comments

Lovable says it has hit $500M in annualized revenue

https://techcrunch.com/2026/06/09/lovable-says-it-has-hit-500m-in-annualized-revenue-with-1-milli...
2•parveshblogger•15m ago•0 comments

Show HN: HN Debrief – A daily digest of the best HN comment threads

https://hndebrief.com/2026-06-08
2•nitekode•15m ago•0 comments

Ask HN: Why was my Show HN flagged?

2•andreygrehov•15m ago•4 comments

Moving data around still sucks

https://www.counting-stuff.com/moving-data-around-still-sucks/
1•speckx•16m ago•0 comments

Upstart chipmakers keep challenging Nvidia

https://www.cnbc.com/2026/06/09/nvidia-d-matrix-chip-production-microsoft.html
1•leopoldj•18m ago•0 comments

KaOS Takes Final Init Step Away from System with Dinit RC ISO

https://linuxiac.com/kaos-takes-final-init-step-away-from-systemd-with-dinit-rc-iso/
1•peter_d_sherman•18m ago•1 comments

Show HN: Bitemap – See where everyone would bite a sandwich

https://www.bitemap.food/sandwich/mcdonalds-cheeseburger-3862dc92
1•adsigel•20m ago•0 comments

Show HN: World Cup 2026 Sweepstake Generator with a fair-draw algorithm

https://worldcupsweepstakegenerator.com/
1•dongking•20m ago•0 comments

Designing High-Impact Mobile Ethnography Studies

https://zenodo.org/records/20611747
1•anasteciadunu•20m ago•0 comments

I Miss the Climb

https://pego.dev/i-miss-the-climb/
1•HermanMartinus•21m ago•0 comments

Indications OpenAI Is the Largest Ponzi Scheme in History

https://samhenrycliff.medium.com/indications-openai-is-the-largest-ponzi-scheme-in-history-9d4192...
3•6stringmerc•21m ago•1 comments

Is Grep All You Need? How Agent Harnesses Reshape Agentic Search

https://arxiv.org/abs/2605.15184
2•Anon84•22m 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".