frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Night Before Deployment: How Melian Saved Christmas

https://perladvent.org/2025/2025-12-12.html
1•oalders•1m ago•1 comments

Deep Thinking: Where Machine Intelligence Ends and Human Creativity Begins

https://www.kasparov.com/deep-thinking-ai/
1•chhenning•1m ago•0 comments

Just Change the Key

https://www.johndcook.com/blog/2025/12/11/just-change-the-key/
1•ibobev•1m ago•0 comments

Berlin Approves New Expansion of Police Surveillance Powers

https://reclaimthenet.org/berlin-approves-new-expansion-of-police-surveillance-powers
1•robtherobber•2m ago•0 comments

Gist of Go: Concurrency is out

https://antonz.org/go-concurrency-released/
1•ibobev•2m ago•0 comments

Show HN: CyberLoop – A control-loop architecture for stable LLM agents

https://github.com/roackb2/cyberloop
1•roackb2•2m ago•1 comments

TiddlyWiki – a non-linear personal web notebook

https://tiddlywiki.com/
1•sogen•3m ago•0 comments

Show HN: Radiotron (alpha) a Fast Medical Segmentation and Visualization Tool

https://nicktasios.nl/radiotron/
1•Grieverheart•3m ago•0 comments

Show HN: A diagram a code rendering tool for network documentation

https://drawthenet.io/
1•ratchetclank•5m ago•0 comments

Meta Reportedly Set to Raise VR Headset Prices, Keep Existing Devices Longer

https://www.roadtovr.com/meta-quest-3-price-hike-report/
1•rob74•6m ago•0 comments

Oral Exams Improve Engineering Student Performance, Motivation (2023)

https://today.ucsd.edu/story/oral-exams-improve-engineering-student-performance-motivation
1•sonabinu•7m ago•0 comments

Ask HN: The AGI Race That Might Not Be a Race

1•razodactyl•7m ago•0 comments

Towards Modeling Road Access Deprivation in Sub-Saharan Africa

https://arxiv.org/abs/2512.02190
1•PaulHoule•7m ago•0 comments

Oasis: Pooling PCIe Devices over CXL to Boost Utilization

https://dl.acm.org/doi/10.1145/3731569.3764812
1•blakepelton•7m ago•1 comments

Will blockbuster obesity drugs revolutionize addiction treatment?

https://www.nature.com/articles/d41586-025-03911-x
1•qnleigh•11m ago•0 comments

White House Turning to Private Firms in Cyber Offensive

https://www.bloomberg.com/news/articles/2025-12-12/trump-administration-turning-to-private-firms-...
2•newer_vienna•11m ago•0 comments

New York's Best Espresso? (2002)

https://www.nytimes.com/2002/05/15/dining/critic-s-notebook-new-york-s-best-espresso.html
1•nivethan•12m ago•1 comments

CM0 – a new Raspberry Pi you can't buy

https://www.jeffgeerling.com/blog/2025/cm0-new-raspberry-pi-you-cant-buy
3•speckx•12m ago•0 comments

Stanford Medicine study shows mRNA-based Covid-19 vaccines can cause myocarditis

https://med.stanford.edu/news/all-news/2025/12/myocarditis-vaccine-covid.html
2•DeusExMachina•12m ago•0 comments

Nicaea: The council that shaped the West

https://engelsbergideas.com/notebook/nicaea-the-council-that-shaped-the-west/
1•teleforce•13m ago•0 comments

Show HN: Quorum – Multi-agent CLI debates (AutoGen back end and React/Ink TUI)

https://github.com/Detrol/quorum-cli
1•Detrol•13m ago•0 comments

Intel has tested chipmaking tools from firm with sanctioned China unit

https://www.reuters.com/world/china/intel-has-tested-chipmaking-tools-firm-with-sanctioned-china-...
1•payamb•15m ago•0 comments

Show HN: Dssrf – A safe‑by‑construction SSRF defense library for Node.js

1•relunsec•16m ago•0 comments

Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMs

https://arxiv.org/abs/2512.05648
1•yorwba•16m ago•0 comments

Anyone used clear aligners like Smile White?

https://www.smilewhite.co.uk/
1•trooperbill•18m ago•0 comments

Rivian Reveals New AI Assistant, Lidar, and Autonomous Driving Coming in 2026

https://gizmodo.com/rivian-reveals-new-ai-assistant-lidar-and-autonomous-driving-coming-in-2026-2...
1•frozenseven•19m ago•0 comments

The Ring, the Holon, and the Revenge of the Objective

https://estebanandthecollective.substack.com/p/the-ring-the-holon-and-the-revenge
1•asplake•21m ago•0 comments

AI that reads your Git history so you don't have to write status reports

1•slmslm•21m ago•0 comments

Show HN: PageSpeak – Talk to book characters in their world or ours

https://www.pagespeak.ai/books
1•drkph•22m ago•0 comments

Amazon pledges $35B worth of investments in India with AI focus

https://www.cnbc.com/2025/12/10/amazon-pledges-35-billion-investments-in-indias-ai-space-through-...
1•gmays•23m 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•7mo ago
It missed "git switch" and "git restore".