frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Google Broke Its Promise to Me. Now ICE Has My Data

https://www.eff.org/deeplinks/2026/04/google-broke-its-promise-me-now-ice-has-my-data
1•Brajeshwar•1m ago•0 comments

Spotted a bear lately? You're not alone–why sightings are on the rise

https://cssh.northeastern.edu/spotted-a-bear-lately-youre-not-alone-why-sightings-are-on-the-rise/
1•PaulHoule•1m ago•0 comments

Show HN Deskdrop: An Android Keyboard with Local AI Support (Ollama, LM Studio)

https://github.com/SvReenen/Deskdrop
1•SvReenen•1m ago•0 comments

Snap Is Laying Off 16% of Full-Time Staff as It Embraces A.I

https://www.nytimes.com/2026/04/15/business/snap-layoffs-snapchat.html
1•xnx•2m ago•0 comments

Lyra 2.0: Explorable Generative 3D Worlds

https://arxiv.org/abs/2604.13036
1•aanet•3m ago•1 comments

The Security Decisions Claude Code and Codex Make

https://amplifying.ai/research/ai-security-decisions
1•edwin•4m ago•0 comments

Introducing Cloudflare Mesh

https://developers.cloudflare.com/changelog/post/2026-04-14-cloudflare-mesh/
2•ransom_rs•6m ago•1 comments

Moss-TTS-Nano: Real-Time Voice AI on CPU (Open-Source TTS Stack)

https://firethering.com/moss-tts-nano-open-source-tts/
1•steveharing1•7m ago•0 comments

Ask HN : Vibe coders: does AI keep breaking your auth and webhooks?

https://www.indiehackers.com/post/vibe-coders-does-ai-keep-breaking-your-auth-and-webhooks-b9e869...
2•siddhant-jain•7m ago•1 comments

Watching TV with the Second-Party: A First Look at ACR Tracking in Smart TVs (2024)

https://arxiv.org/abs/2409.06203
2•redbell•8m ago•0 comments

Show HN: Slack killed their OpenAPI spec, so we reverse engineered it

https://github.com/connectstrata/slack-openapi-generator
1•jmclai•8m ago•0 comments

Ask HN: What do founders want from a one person dev studio?

1•Punyakrit•10m ago•1 comments

Ask HN: What's your favourite business oriented movie?

3•wasimsk•10m ago•2 comments

BBC to cut up to 2k jobs in biggest downsize in 15 years

https://www.theguardian.com/media/2026/apr/15/bbc-cut-jobs-downsize-matt-brittin-tim-davie
1•mellosouls•15m ago•0 comments

Trump Killed the One Thing That Made Filing Taxes Easier

https://www.nytimes.com/2026/04/04/opinion/taxes-trump-direct-file-tax-day-april.html
5•mitchbob•15m ago•1 comments

Trust and the Death of the Handshake Deal

https://nickchirls.com/2026/04/15/trust-and-the-death-of-the-handshake-deal/
2•rafaelc•16m ago•0 comments

Close the Book. Recall. Write It Down. (2009)

https://www.chronicle.com/article/close-the-book-recall-write-it-down/
1•downbad_•17m ago•1 comments

Jensen Huang – How Nvidia locked up the semiconductor supply chain [video]

https://www.youtube.com/watch?v=Hrbq66XqtCo
1•tosh•18m ago•0 comments

Dino from Scratch

https://github.com/aldipiroli/dino_from_scratch
1•tgnk2341•18m ago•0 comments

Show HN: Tier – Adaptive tool routing that makes small LLMs 10pt more accurate

https://github.com/yantrikos/tier
2•pranabsarkar•18m ago•0 comments

Bot-AGI-1 – a robotics benchmark for VLMs

https://bot-agi.org/
1•chronolitus•19m ago•0 comments

Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts

https://machinelearning.apple.com/research/cram-less
1•gmays•19m ago•0 comments

The Gemini app is now on Mac

https://blog.google/innovation-and-ai/products/gemini-app/gemini-app-now-on-mac-os/
3•thm•19m ago•0 comments

Python Type Checker Comparison: Speed and Memory Usage

https://pyrefly.org/blog/speed-and-memory-comparison/
1•ocamoss•19m ago•0 comments

Show HN: Agentfab – A Distributed Agentic Platform

https://github.com/RazvanMaftei9/agentfab
1•razvan_maftei•21m ago•0 comments

Patch Tuesday, April 2026 Edition

https://krebsonsecurity.com/2026/04/patch-tuesday-april-2026-edition/
1•Brajeshwar•21m ago•0 comments

New search engine reveals if ancestors were in Nazi party

https://www.bbc.com/news/articles/cr411ndee7yo
2•hackernj•21m ago•1 comments

Ecovacs Wants to Weaponize Your Mop Water

https://www.siliconsnark.com/ecovacs-wants-to-weaponize-your-mop-water/
1•SaaSasaurus•22m ago•0 comments

French cops free mother and son after 20-hour crypto kidnap ordeal

https://www.theregister.com/2026/04/15/crypto_kidnap_france/
1•Bender•23m ago•0 comments

Encrypted Client Hello: A Big Tech Privacy Fix

https://blog.miloslavhomer.cz/encrypted-client-hello/
1•ArcHound•24m 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•11mo ago

Comments

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

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

to:

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

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

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

Oh and maybe cherry-pick

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