frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Wayward Webring: a collection of link collections

https://waywardweb.org/
2•gavmor•1m ago•0 comments

Ask HN: What do you dislike most about Linux and Windows?

1•roschdal•1m ago•0 comments

An Actionable Model of Trust

https://paragraph.com/@hq.spengrah/an-actionable-model-of-trust
1•NickNaraghi•2m ago•0 comments

Anthropic's next model could be a 'watershed moment' for cybersecurity

https://www.cnn.com/2026/04/03/tech/anthropic-mythos-ai-cybersecurity
1•agiacalone•2m ago•0 comments

Status icons and symbols on Apple Watch

https://support.apple.com/en-us/108038
1•bookofjoe•3m ago•0 comments

CISA Adds One Known Exploited Vulnerability to Catalog

https://www.cisa.gov/news-events/alerts/2026/04/02/cisa-adds-one-known-exploited-vulnerability-ca...
1•anonhaven•3m ago•0 comments

Show HN: Aurion OS, A 1.8MB OS with a browser, try it live (C/x86 ASM)

https://aurionos.vercel.app/
1•Luka12-dev•7m ago•1 comments

Show HN: Mold – local AI image generation CLI (FLUX, SDXL, SD1.5, 8 families)

https://github.com/utensils/mold
2•doomspork•7m ago•0 comments

US F-15E jet confirmed shot down over Iran as Tehran releases wreckage images

https://www.theguardian.com/world/2026/apr/03/us-fighter-jet-confirmed-shot-down-over-iran
3•tjwds•7m ago•0 comments

Security Risk of AI code editors

https://old.reddit.com/r/cybersecurity/comments/1hx980d/security_risk_of_ai_code_editors/
1•downboots•7m ago•0 comments

Rainy-city.com: A side project I have been thinking about for a long time

https://www.lowimpactfruit.com/p/rainy-citycom-a-side-project-i-have
1•mnky9800n•8m ago•0 comments

Ask HN: Advice on Solo Launching

2•acaciabengo•11m ago•0 comments

I found an IDOR exposing 250k patient records in a telehealth startup

https://medium.com/@calebbacher/i-found-a-hipaa-violation-in-a-400m-startup-they-paid-me-1-000-an...
2•csteinbacher•12m ago•0 comments

MicroSafe-RL v1.0 – Sub-microsecond safety for Edge AI

https://github.com/Kretski/MicroSafe-RL
1•DREDREG•13m ago•0 comments

Ask HN: What music are you currently working to?

1•SunshineTheCat•14m ago•1 comments

ARCHE3-7B – Sparse Moe with SmartRouter and Foundation Curriculum Training

1•OpenSynapseLabs•14m ago•0 comments

Packaging 128 Languages with Nix

https://invariant.club/articles/packaging-128-programming-languages-with-nix.html
1•birdculture•14m ago•0 comments

Lossless context management: how kern compresses 20k messages into a context

https://kern-ai.com/blog/lossless-context-management
1•obilgic•14m ago•0 comments

Competing for the JOB with a Triplestore

https://yyhh.org/blog/2024/09/competing-for-the-job-with-a-triplestore/
1•smartmic•16m ago•0 comments

Cash-strapped AI chip startup Hailo sees valuation halved ahead of urgent IPO

https://www.calcalistech.com/ctechnews/article/rj000qzaowx
1•muxamilian•16m ago•0 comments

Artemis II astronauts take questions on their way toward the moon [video]

https://www.youtube.com/watch?v=f81dxqUauuk
1•majkinetor•17m ago•0 comments

tldr: A local MCP gateway that cuts tool schema tokens by 86%

https://github.com/robinojw/tldr
1•robinojw_•17m ago•0 comments

Don't let Claude Code read your secrets: why you need to set up sandboxing today

https://ahmet.ee/your-claude-code-setup-is-probably-not-as-safe-as-you-think/
1•aozisik•18m ago•0 comments

Show HN: Nova v1.5.0 Gold Master – A pure C++17 assistant with zero dependencies

https://github.com/94BILLY/NOVA/releases
1•94BILLY•18m ago•0 comments

Boneyard: Generate pixel-perfect skeleton screens from your real DOM

https://github.com/0xGF/boneyard
1•steveharing1•19m ago•0 comments

Dance Your PhD

https://en.wikipedia.org/wiki/Dance_Your_Ph.D.
1•cainxinth•20m ago•0 comments

Meshoptimizer 1.1 released with meshlet compression and opacity micromaps

https://github.com/zeux/meshoptimizer/releases/tag/v1.1
1•mariuz•20m ago•0 comments

Audit Claude Platform Activity with the Compliance API

https://claude.com/blog/claude-platform-compliance-api
2•gmays•24m ago•0 comments

Show HN: I built a PHP-to-native compiler (written in Rust); now it runs DOOM

https://github.com/illegalstudio/elephc
1•nahime•24m ago•0 comments

Programming (with AI agents) as theory building

https://www.seangoedecke.com/programming-with-ai-agents-as-theory-building/
2•ingve•26m 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".