frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

CachyOS: Fast and Customizable Linux Distribution

https://cachyos.org/
1•doener•54s ago•0 comments

Make Money Not War: Trump's Real Plan for Peace in Ukraine

https://www.wsj.com/world/russia/russia-u-s-peace-business-ties-4db9b290
1•truegoric•3m ago•1 comments

Write ReactJS in Rust

https://github.com/hyper-forge/brahma-react
1•StellaMary•4m ago•0 comments

Advent of Code CLI and "std" library

https://blog.miloslavhomer.cz/advent-of-code-cli-client-and-library/
1•ArcHound•9m ago•1 comments

Top Line App Devdeloper

1•Epif•11m ago•0 comments

Sportfoli – A Simple, Clean Sports Profile Builder for Athletes

https://www.sportfoli.com/
1•ethjdev•11m ago•2 comments

Why Fears of a Trillion-Dollar AI Bubble Are Growing

https://www.bloomberg.com/news/articles/2025-11-24/why-ai-bubble-concerns-loom-as-openai-microsof...
2•doener•14m ago•0 comments

Austria's armed forces rely on LibreOffice instead of Microsoft

https://oe1.orf.at/programm/20250916/807304/Freie-Software-fuer-das-Bundesheer
2•doener•15m ago•1 comments

Cultural Death in the Age of the Excessive Choice

https://apocalypse-confidential.com/2025/11/24/cultural-death-in-the-age-of-the-excessive-choice/
1•nickcotter•16m ago•0 comments

Pg_stat_insights: PostgreSQL Performance Monitoring Extension

https://www.pgelephant.com/blog/pg-stat-insights
1•pgelephant2025•17m ago•0 comments

The missing link in JavaScript tools

https://marvinh.dev/blog/unifying-js-tools/
1•whatever3•18m ago•0 comments

Pro-tax Austrian heiress gives away $27M of her inheritance

https://www.nbcnews.com/news/world/heiress-gives-away-inheritance-rcna157887
1•saubeidl•20m ago•0 comments

Losing Confidence

https://eclecticlight.co/2025/11/30/last-week-on-my-mac-losing-confidence/
2•ingve•21m ago•0 comments

Show HN: MTXT – Music Text Format

https://github.com/Daninet/mtxt
3•daninet•26m ago•0 comments

The 30-foot sea cow quickly hunted to extinction because of its tasty meat

https://www.nationalgeographic.com/history/article/stellers-sea-cow-30-foot-hunted-extinction
1•rwmj•28m ago•0 comments

Celebrity Birthdays: Toddler Edition 2025 (Z-Image)

https://old.reddit.com/r/StableDiffusion/comments/1pa8os4/celebrity_birthdays_toddler_edition_202...
1•b0ner_t0ner•37m ago•0 comments

Exploiting open Ollama instances for free LLM inference

https://defcon.social/@flipper/115611972992468231
3•flipperr•41m ago•3 comments

Shrinking While Linking

https://www.tweag.io/blog/2025-11-27-shrinking-static-libs/
2•ingve•43m ago•0 comments

Silicon Valley's Man in the White House Is Benefiting Himself and His Friends

https://www.nytimes.com/2025/11/30/technology/david-sacks-white-house-profits.html
5•fleahunter•44m ago•1 comments

Why is real-world ASR still ~85% when lab models claim >95%?

1•DoubleThing•45m ago•0 comments

Open source YouTube Content Blocker based on words

https://chromewebstore.google.com/detail/filtertube/cjmdggnnpmpchholgnkfokibidbbnfgc
2•varshneydevansh•50m ago•0 comments

Elf a modern CLI helper for Advent of Code written in Python

https://github.com/cak/elf
1•cak•51m ago•1 comments

UserScanner

1•kaifcodec•52m ago•0 comments

Israel's IDF Bans Android Phones: iPhones Now Mandatory

https://www.forbes.com/sites/zakdoffman/2025/11/30/israels-idf-bans-android-to-stop-hackers-iphon...
12•teleforce•53m ago•0 comments

Great_Consciousness_Theory_2025

https://pastebin.com/x1Yr9mvP
1•MATE_VIGH•1h ago•1 comments

The Space of Minds

https://karpathy.bearblog.dev/the-space-of-minds/
3•Garbage•1h ago•0 comments

Show HN: Let Claude Code call other LLMs when it runs in circles

https://github.com/raine/consult-llm-mcp
2•rane•1h ago•0 comments

Triton Plugins

https://github.com/triton-lang/triton/pull/8401
2•zer0zzz•1h ago•0 comments

The NaK Population: a 2019 Status [pdf]

https://ntrs.nasa.gov/api/citations/20190033494/downloads/20190033494.pdf
1•perihelions•1h ago•0 comments

In-Depth Analysis of the Latest Deep Research Technology

https://huggingface.co/blog/exploding-gradients/deepresearch-survey
1•tamnd•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•7mo ago

Comments

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

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

to:

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

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

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

Oh and maybe cherry-pick

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