frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Polars CLI

https://pola.rs/posts/announcing-agentic-polars-cli/
1•jonbaer•29s ago•0 comments

How Social Engineering Attacks Work and How to Defend Against Them

https://www.freecodecamp.org/news/social-engineering-attacks-developers/
1•rafeuddaraj•3m ago•0 comments

Show HN: Yoink – Android app, download media, preserve messages, verifiy claims

https://yoink.frankoge.com
1•frankdotdev•5m ago•0 comments

Polymarket is dying thanks to bad engineering

https://twitter.com/llmfeeder/status/2128007892737597859
1•cft•8m ago•0 comments

Knotless: Git on ATProto

https://knotless.dev/
2•jcbhmr•9m ago•1 comments

Baidu's Unlimited SVG generates SVGs from images stroke by stroke

https://huggingface.co/baidu/Unlimited-SVG
4•slymax•10m ago•0 comments

New integrations now go to the Home Assistant Marketplace

https://contributors.home-assistant.io/blog/2026/12/01/new-integrations-go-to-the-marketplace/
1•Volundr•11m ago•0 comments

Warren Buffett, legendary investor, dies at 96

https://edition.cnn.com/2026/12/01/economy/warren-buffett-obituary§
2•stigi•14m ago•0 comments

Samsung Heavy Aims for First Large Floating Data Center

https://news.slashdot.org/story/26/12/01/169229/samsung-heavy-aims-for-worlds-first-large-floatin...
1•signa11•18m ago•0 comments

Show HN: Advent Calendar Doors – Collaborative 24-door holiday calendar

https://adventcalendardoors.com/
1•ht7850142•20m ago•0 comments

White House says Lutnick will testify before Congress on Nvidia

https://apnews.com/article/nvidia-lutnick-jensen-huang-congress-subpoena-b198d4b37821cf50c874e6e0...
1•petethomas•20m ago•0 comments

SugarBind – Support Healthy Blood Sugar and Daily Wellness

https://open.spotify.com/episode/4hwJgkewMEbaZLbOa9tbxQ
1•Suzanwhite•21m ago•1 comments

Meeks: Mr. Huang now agrees that some Nvidia chips had been diverted to China

https://democrats-foreignaffairs.house.gov/2026/12/meeks-issues-statement-on-transcribed-intervie...
1•pcvarmint•21m ago•0 comments

US curbs push Tencent, Alibaba and ByteDance from Nvidia to local chips: sources

https://www.reuters.com/business/retail-consumer/tencent-alibaba-bytedance-shift-nvidia-budgets-d...
1•snikolaev•21m ago•0 comments

Société Générale will tighten data center lending as it expects a slowdown

https://startupfortune.com/socit-gnrale-will-tighten-data-center-lending-as-it-expects-a-slowdown/
1•petethomas•22m ago•0 comments

A new AI model for plotting bio-assays graph

https://biodiorama.com/graph/
1•abhishekum•25m ago•0 comments

Show HN: Modern Stunts. Broderbund's Stunts in Godot with Plugins and Mods

https://modernstunts.com/
1•thepipetogrep•25m ago•0 comments

Stambha – Real macOS on Your PC

https://garvitsurana271.github.io/stambha/
1•geerlingguy•28m ago•0 comments

GLM 5.4 now available on OpenRouter

https://openrouter.ai/z-ai/glm-5.4
2•theanonymousone•29m ago•1 comments

Show HN: Production Grammar-Guided Decoding in vLLM with Xgrammar Benchmarks

https://github.com/grfdsasdvef/vllm-constrained-decoding-cookbook
1•snowdensay•32m ago•0 comments

Microsoft rolls out Entra ID MFA checks to block automated fraud

https://www.bleepingcomputer.com/news/microsoft/microsoft-entra-id-gets-mfa-anti-bot-checks-to-bl...
2•Smith-7831•41m ago•0 comments

DevElif

https://develif.com
1•DevElif•44m ago•1 comments

Warren Buffett, legendary investo, dies at age 96

https://www.cbsnews.com/news/warren-buffett-berkshire-hathaway-dies-age-96/
2•riffraff•44m ago•0 comments

Ask HN: Which model do you use for writing?

2•reddmachine•53m ago•3 comments

Show HN: OpenRSI Physics:AI Starting to Beat the Record on Open Physics Problems

https://openrsi.foundation/openrsi-physics/#home
1•gdoptimizer•56m ago•0 comments

Got Scammed

1•srajendiran3•59m ago•1 comments

Trading Desk – Fail-closed paper trading and risk workbench (Python, SQLite)

https://github.com/hkedia08/trading-desk
1•harshkedia600•1h ago•0 comments

Warren Buffett Has Died

https://finance.yahoo.com/markets/live/warren-buffett-dies-tributes-and-reactions-mourning-the-or...
2•FinnLobsien•1h ago•0 comments

Show HN: BenchPoll–Set weights for AI benchmarks

https://benchpoll.com/
1•twotokens•1h ago•0 comments

Software as a Medium

https://ryo.lu/journal/software-as-a-medium
1•meetpateltech•1h 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".