frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

How to open a file in Emacs

https://www.murilopereira.com/how-to-open-a-file-in-emacs
1•lr0•3m ago•0 comments

The cardinal sin of software architecture

https://functional.computer/blog/the-cardinal-sin-of-software-architecture
1•speckx•6m ago•0 comments

I set all 376 Vim options and I'm still a fool

https://evanhahn.com/i-set-all-376-vim-options-and-im-still-a-fool/
1•todsacerdoti•6m ago•0 comments

Diosdado Banatao, Chip Designer, Investor and Entrepreneur, Dies at 79

https://www.wsj.com/wsjplus/dashboard/articles/diosdado-bantao-chip-designer-dead-79-f205c32b
1•melling•6m ago•0 comments

Ask HN: Which system would you trust to run a business you can't afford to lose?

1•cutterlayers•8m ago•0 comments

Closing the Door on Net-NTLMv1: Releasing Rainbow Tables

https://cloud.google.com/blog/topics/threat-intelligence/net-ntlmv1-deprecation-rainbow-tables
1•linolevan•12m ago•1 comments

Technology and Wealth: The Straw, the Siphon, and the Sieve [video]

https://www.youtube.com/watch?v=OxvRx7sQNxc
1•measurablefunc•15m ago•0 comments

We're more patient with AI than one another

https://www.uxtopian.com/journal/were-more-patient-with-ai-than-one-another
2•lucidplot•15m ago•0 comments

Stop Pulling Yourself Down

https://buanasalf.com/blog/stop-pulling-yourself-down/
1•moh20•15m ago•0 comments

Human code review is a crutch

https://deadneurons.substack.com/p/human-code-review-is-an-outdated
1•nr378•15m ago•0 comments

Kusto Query Language

https://github.com/microsoft/Kusto-Query-Language
1•tosh•15m ago•0 comments

Show HN: I made a phone in between a smartphone and dumbphone

https://bouchardindustries.com
1•bouchardio•16m ago•1 comments

Fast Concordance: Instant concordance on a corpus of >1,200 books

https://iafisher.com/concordance/
1•evakhoury•17m ago•0 comments

Microsoft killing tech debt with agents [audio]

https://podcasts.apple.com/us/podcast/microsoft-killing-tech-debt-with-agents/id1621165150?i=1000...
1•azhenley•17m ago•0 comments

Demystifying Evals for AI Agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
2•theptip•18m ago•0 comments

Claude Code Scheduler

https://github.com/jshchnz/claude-code-scheduler
1•jshchnz•18m ago•0 comments

OpenAI Introduces Ads to ChatGPT

https://twitter.com/sama/status/2012253252771824074
3•strzalek•18m ago•1 comments

DuckDB's CSV Reader and the Pollock Robustness Benchmark

https://duckdb.org/2025/04/16/duckdb-csv-pollock-benchmark
1•tosh•19m ago•0 comments

Low-Tech

https://en.wikipedia.org/wiki/Low_technology
1•tux•19m ago•0 comments

Fastmail Is Down

https://fastmailstatus.com
2•safe_duck7727•24m ago•3 comments

Billionaires demand more babies but make parenthood unaffordable

https://www.aljazeera.com/opinions/2026/1/16/billionaires-demand-more-babies-but-make-parenthood-...
2•Qem•25m ago•0 comments

How children lost the right to roam in four generations

https://www.dailymail.co.uk/news/article-462091/How-children-lost-right-roam-generations.html
2•mhb•26m ago•0 comments

Ammobia says it has reinvented a century-old technology

https://techcrunch.com/2026/01/13/ammobia-says-it-has-reinvented-a-century-old-technology/
1•rmason•27m ago•1 comments

Polar Vortex Breakdown May Trigger Weeks of Extreme Cold

https://www.j-c-a.org/polar-vortex-breakdown-may-trigger-weeks-of-extreme-cold/
1•amichail•29m ago•0 comments

A16Z: The Power Brokers

https://www.notboring.co/p/a16z-the-power-brokers
1•rmason•30m ago•0 comments

Book Review: The Perfectionists by Simon Winchester

https://www.eleanorkonik.com/p/review-the-perfectionists-by-simon
1•paulpauper•30m ago•0 comments

The truth Elon left out

https://openai.com/index/the-truth-elon-left-out/
12•colesantiago•30m ago•6 comments

The Great Divergence

https://johnlawrenceaspden.substack.com/p/the-great-divergence
1•paulpauper•31m ago•0 comments

An app can be a meal kit

https://ammil.industries/log/an-app-can-be-a-meal-kit/
1•cjlm•33m ago•0 comments

Show HN: AI health agent that nags you on WhatsApp instead of a dashboard

https://app.vitalify.ai/
2•erenkaradag•38m ago•3 comments
Open in hackernews

Git Commands That Cover 90% of a Developer's Daily Workflow

https://jsdev.space/15-git-commands/
29•javatuts•8mo ago

Comments

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

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

to:

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

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

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

Oh and maybe cherry-pick

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