frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Trump administration proposes budget cuts to science

https://www.scientificamerican.com/article/trump-administration-proposes-massive-budget-cuts-to-s...
1•ZunarJ5•1m ago•0 comments

New Chromium-based web browser for SEO

https://serplens.com
1•brodieclark•9m ago•1 comments

What have been the greatest intellectual achievements?

https://www.thinkingcomplete.com/2017/09/what-have-been-greatest-intellectual.html
2•o4c•11m ago•0 comments

Show HN: Contrails – App to watch coding agents chats and save them to your repo

https://github.com/ThreePalmTrees/Contrails
1•Contrails•11m ago•0 comments

Gnome OS revealed what Linux is becoming

https://www.makeuseof.com/i-tried-gnome-os-and-it-showed-me-where-linux-is-actually-heading/
2•ForHackernews•14m ago•0 comments

I built an LLM Wiki and RAG solution: here's a demo for a security KB

https://99helpers.com/wiki/security-kb
1•nickk81•16m ago•1 comments

Mutually Automated Destruction: The Escalating Global A.I. Arms Race

https://www.nytimes.com/2026/04/12/technology/china-russia-us-ai-weapons.html
2•Leomuck•21m ago•1 comments

Strong Model First or Weak Model First? A Cost Study for Multi-Step LLM Agents

https://llm-spec.pages.dev/
1•vsekar•23m ago•0 comments

Why "Travel Inspiration" is the biggest UX gap in TravelTech

https://www.lupath.ai/
1•LUpath•26m ago•0 comments

Brocards for Vulnerability Triage

https://blog.yossarian.net/2026/04/11/Brocards-for-vulnerability-triage
1•ramimac•27m ago•0 comments

JVM Options Explorer

https://chriswhocodes.com/vm-options-explorer.html
2•0x54MUR41•28m ago•0 comments

Fix monitor that goes black, off or blinks due to static electricity in chair

https://aalonso.dev/blog/2023/how-to-fix-monitor-that-goes-black-off-due-to-static-electricity-in...
1•cyclopeanutopia•30m ago•1 comments

Running AI Agents in a Sandbox

https://oligot.be/posts/ai-sandbox/
1•oligot•32m ago•0 comments

Left-Wing Social Darwinism

https://www.rechristianize.com/blog/social-darwinism/left-wing-social-darwinism.html
1•Egret•39m ago•0 comments

Show HN: 3D Tik Tak Toe (Hard)

https://arthur-ficial.github.io/tictactoe-3d/
1•franze•39m ago•1 comments

MiniMax M2.7 Is Now Open Source

https://firethering.com/minimax-m2-7-agentic-model/
8•steveharing1•50m ago•2 comments

Artemis III Proposed Landing Sites

https://artemis-iii.technex.us
1•hparadiz•51m ago•0 comments

Linux kernel doesn't care about your disk health

https://simpleobservability.com/blog/linux-kernel-doesnt-care-disk-health
2•khazit•53m ago•0 comments

Making memory safe language but easy to use

https://github.com/Vix-Programing-language/Vix-programing-language
2•MrBatata•54m ago•1 comments

Doom, Played over Curl

https://github.com/xsawyerx/curl-doom
3•creaktive•55m ago•0 comments

Show HN: Toy Python Lisp interpreters based on the 1960 McCarthy paper

https://github.com/jhud/lisp
3•disconnection•55m ago•0 comments

Why Scotland Succeeded

https://www.ageofinvention.xyz/p/age-of-invention-why-scotland-succeeded
2•Khaine•1h ago•0 comments

Bourbaki: A Unified Foundation for Mathematics [video]

https://www.youtube.com/watch?v=EQ3w-YcP4q4
2•hnlyman•1h ago•0 comments

I built a tool to answer "why does this user have access to X?" in AD

https://github.com/alparn/whohas
1•Alpn13•1h ago•1 comments

Rapidly Scaffold Agents, MCP Servers, APIs, Websites on AWS

https://awslabs.github.io/nx-plugin-for-aws/
2•cogwirrel•1h ago•0 comments

Show HN: I made an app to help me learn Middle Eastern drumming

https://labs.tiffzhang.com/drums/
1•shadowfiles•1h ago•1 comments

Happy Horse AI

https://www.happy-horse-ai.ai
2•erji2233•1h ago•1 comments

The Gang: A Cooperative Texas Hold'em Bank Heist Card Game

https://boardgamegeek.com/boardgame/411567/the-gang
1•Lwrless•1h ago•0 comments

Intel Xpress Resurrection: Reviving a Forgotten EISA Beast

https://x86.fr/intel-xpress-resurrection-reviving-a-forgotten-eisa-beast/
2•ankitg12•1h ago•0 comments

Intent Security Through the Lens of Claude Code Auto Mode

https://www.lasso.security/blog/claude-code-auto-mode-vs-intent-security
1•irememberu•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•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".