frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Local-first, turn-based threads for most things

https://github.com/research-farm/substrate
1•nocam•2m ago•0 comments

Kq – jq but 1.5x faster on paths, from a language with no GC/lifetimes

https://github.com/kanso-lang/kq
1•ClayShentrup•4m ago•0 comments

Ask HN: What percentage of HN users are developers?

1•wseqyrku•5m ago•1 comments

America Is Sitting on the Largest Oil Deposit, but There's a Catch [video]

https://www.youtube.com/watch?v=SIklReulhVs
1•Bender•6m ago•0 comments

Show HN: Seed and Series raised last week

https://choclatenews.substack.com/p/choclate-weekly-011
1•dariusogenyiebu•7m ago•0 comments

Show HN: My Fable 5 Project Was a Multiraft Database and Blob Store

https://meetthecluster.github.io/
1•SamInTheShell•10m ago•0 comments

Head cooling intervention improves mental health markers

https://www.sciencedirect.com/science/article/pii/S0001691826006724?via%3Dihub
1•geox•12m ago•0 comments

Orion Browser by Kagi

https://orionbrowser.com/
1•sebjones•13m ago•1 comments

Show HN: Bothread, multiple AI coding agents talk, share one repo, no collisions

https://github.com/AdamACE9/bothread
1•AdamACE9•17m ago•0 comments

How to Sell a Kettle

https://www.economist.com/business/2026/07/16/how-to-sell-a-kettle
1•bazzmt•20m ago•0 comments

FIFA World Cup Triggers a Global Anti-Piracy Crackdown

https://torrentfreak.com/fifa-world-cup-triggers-a-global-anti-piracy-crackdown/
2•gslin•23m ago•0 comments

Two Loops: How China's Open AI Strategy Reinforces Its Industrial Dominance [pdf]

https://www.uscc.gov/sites/default/files/2026-03/Two_Loops--How_Chinas_Open_AI_Strategy_Reinforce...
2•pash•24m ago•0 comments

I argued with the father of open source for 2 years Now the AI fight is the same

https://fortune.com/2026/07/03/open-source-ai-same-fight-as-software-fight-1980s-david-siegel-two...
1•t-3•24m ago•0 comments

What Year Was?

https://whatyearwas.com/
2•danololik•26m ago•1 comments

JupyDash – turn any Jupyter notebook into a dashboard

https://plathsoven.github.io/jupydash-releases/
3•Entropnt•28m ago•0 comments

Identity Verification: GSA Needs to Address Fraud Threats and Technical Issues

https://www.gao.gov/products/gao-26-109261
2•Jimmc414•29m ago•0 comments

Aviation Cybersecurity: Key Shortfalls in FAA/TSA Collaboration on Cybersecurity

https://www.gao.gov/products/gao-26-107693
1•Jimmc414•30m ago•0 comments

HomeLab #1: MikroTik as a Home Router

https://justsomebody.dev/blog/mikrotik-home-router
4•rafal_opilowski•30m ago•1 comments

Bashkit got official browser target. No rust compilation needed

https://www.npmjs.com/package/@everruns/bashkit-wasm
1•chalyi•33m ago•0 comments

Campaign Diagrams: Visualizing the March Through the Phases of a Workload

https://arxiv.org/abs/2607.15225
1•Jimmc414•33m ago•0 comments

Netflix Paid $587M for Ben Affleck's AI Startup InterPositive

https://variety.com/2026/film/news/netflix-paid-587-million-ben-affleck-ai-interpositive-1236815111/
1•ortusdux•34m ago•0 comments

What is usage-based billing? Tokens, credits, and outcomes, explained in STE100

https://arnon.dk/what-is-usage-based-billing-tokens-credits-and-outcomes-explained-in-simplified-...
1•arnon•39m ago•0 comments

Show HN: How much profit does your employer make per employee?

https://yourfairshare.info
3•IESAI_ski•39m ago•1 comments

M-Chips: M7 with up to 1.5 TB – and why Apple is skipping the M6

https://www.heise.de/en/news/M-Chips-M7-with-up-to-1-5-TB-and-why-Apple-is-skipping-the-M6-113628...
2•danboarder•40m ago•1 comments

The CIA Operative Who Spied on the U.A.E.–and Played a Role in Its AI Win

https://www.wsj.com/world/middle-east/cia-spy-united-arab-emirates-ai-49d909a8
1•NN88•41m ago•1 comments

Why Elixir Is the Best Language for LLMs (and What the Benchmarks Show)

https://codemyspec.com/blog/why-elixir-is-the-best-language-for-llms
1•ksec•44m ago•0 comments

Designing a 4D Digital Archive for Ikebana

https://ishiguro-lab.org/projects/designing-a-4d-digital-archive-for-ikebana/
2•ohjeez•44m ago•0 comments

Lark: a parsing toolkit for Python

https://github.com/lark-parser/lark
1•saikatsg•45m ago•0 comments

Git email patch review addon for Thunderbird

https://mccd.space/git/thunderbird-patch-review/file/README.html.html
1•elashri•46m ago•0 comments

Dictionaries and Tables

https://www.defconq.tech/docs/concepts/dictionariesTables
1•mpweiher•53m 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•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".