frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

It's Like Minesweeper

https://etamponi.github.io/posts/its-exactly-like-minesweeper/
1•etamponi•11s ago•0 comments

3D Japan

https://twitter.com/i/status/2061314177399169040
1•marklit•5m ago•0 comments

Global stock markets fall as concerns persist over tech firms

https://www.theguardian.com/business/2026/jun/08/stock-markets-fall-tech-firms-ai-boom-oil-prices...
1•01-_-•7m ago•0 comments

An easter egg in the new Lego Batman

https://social.panic.com/@cabel/116710623616975906
1•robin_reala•7m ago•0 comments

Free and private AI chat from DuckDuckGo

https://duck.ai/
1•strzibny•7m ago•0 comments

Greenwald density limit isn't a hard wall: density-free regime seen on EAST

https://www.science.org/doi/10.1126/sciadv.adz3040
1•nryoo•8m ago•0 comments

'Poisoned' AI: the ChatGPT shopping scams that lead to fake websites

https://www.theguardian.com/money/2026/jun/07/ai-chatgpt-shopping-scams-fake-websites
1•01-_-•8m ago•0 comments

AI bills can be as big as a postdoc salary. Is the cost worth it?

https://www.nature.com/articles/d41586-026-01369-z
1•giuliomagnifico•14m ago•0 comments

History of CentOS

https://www.theregister.com/os-platforms/2026/06/08/history-of-centos-how-a-biochemists-linux-hob...
1•sohkamyung•15m ago•0 comments

Show HN: Veritrooper – find what your AI gets wrong about your own docs

https://veritrooper.com/
1•brian8620•16m ago•0 comments

Some Uses of { and }

https://www.jsoftware.com/papers/from.htm
1•tosh•18m ago•0 comments

Show HN: Tinytasktree – Behavior-tree-style task orchestration for LLM agents

https://github.com/orion-arm-ai/tinytasktree
1•hit9•19m ago•0 comments

The Cursor Developer Habits Report

https://cursor.com/insights
2•nsoonhui•20m ago•0 comments

Prompt Injection in RAG Agentic Systems

https://ulad.net/prompt-injection-in-rag-agentic-systems/
1•delduca•20m ago•0 comments

The EU CHIPS Act Is a Failure [video]

https://www.youtube.com/watch?v=eqoX9OIR-DI
2•obscurette•21m ago•0 comments

The lost social infrastructure of work

https://www.science.org/doi/10.1126/science.aeh9559
1•pseudolus•21m ago•0 comments

BastionRoute A WebSocket relay fabric for UDP with zero-inbound ports

https://github.com/klauscam/BastionRoute
1•klauscam•22m ago•0 comments

Ask HN: How do you stay focused while working from home?

2•infoinlet•22m ago•5 comments

Bonzi Buddy

https://en.wikipedia.org/wiki/BonziBuddy
1•ColinWright•23m ago•0 comments

Wonderwerk Cave bones reveal possible fire use by human ancestor 1.79M years ago

https://phys.org/news/2026-06-wonderwerk-cave-bones-reveal-human.html
2•pseudolus•25m ago•0 comments

Show HN: Makememe – a meme CLI for your Claude Code

https://github.com/dhruvmehra/makememe
1•dhruvme•27m ago•1 comments

A Dialog on APL (2015)

https://www.dyalog.com/blog/2015/05/a-dialog-on-apl/
1•tosh•27m ago•0 comments

Premature Optimization Is Fun Sometimes

https://invlpg.com/posts/2025-06-19-premature-optimization.html
1•throawayonthe•28m ago•0 comments

Blaise v0.10.0 (alpha) – Incremental compile, Native Back end and more

https://github.com/graemeg/blaise/releases/tag/v0.10.0
1•mariuz•28m ago•0 comments

OpenAI wants shopping in ChatGPT. Wassist raises $1.1M to keep it on WhatsApp

https://techfundingnews.com/openai-wants-shopping-in-chatgpt-wassist-raises-1-1m-to-keep-it-on-wh...
1•joshwarwick15•29m ago•0 comments

Becoming yourself is a social project

https://velvetnoise.substack.com/p/becoming-yourself-is-a-social-project
1•jger15•29m ago•0 comments

Show HN: Incremental RAG ingestion, only changed chunks get re-embedded

https://github.com/shamikhan005/chunks-sync
1•shamikhan005•32m ago•0 comments

Compiling APL to JavaScript (2014)

https://web.archive.org/web/20150114032647/https://archive.vector.org.uk/art10501160
1•tosh•35m ago•0 comments

Sendzap-One click to WhatsApp. No saved contacts required

https://apps.apple.com/in/app/sendzap/id6770007484
1•kauntech•35m ago•0 comments

Replies to comments on my "LLMs are eroding my career" post

https://human-in-the-loop.bearblog.dev/replies-to-comments-on-my-llms-are-eroding-my-career-post/
4•omblivion•38m ago•1 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".