frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Who's solved ugly Stripe receipts?

1•umarmaaz•4m ago•0 comments

Hydrostatic Pressure Induces Osteogenic Differentiation of Single Stem Cells

https://onlinelibrary.wiley.com/doi/10.1002/smsc.202500287
1•PaulHoule•8m ago•0 comments

HuggingFace Skills: Fine-tune any LLM with one sentence for $0.30

https://huggingface.co/blog/hf-skills-training
1•adiian•11m ago•1 comments

Protocol Omega: Defining AI Identity via Topology Instead of Biological Mimicry

https://github.com/IkanRiddle/Protocol-Omega
1•IkanRiddle•13m ago•1 comments

Is any of you using LLMs to create full features in big enterprise apps?

2•not_that_d•14m ago•0 comments

Controversies on DHH's new open source initiative (which is not open source)

https://mastodon.social/@bagder/115692071460280703
1•akabalanza•14m ago•1 comments

Debt-Fueled Deals Are Back on Wall Street

https://www.wsj.com/finance/investing/massive-debt-fueled-deals-are-back-on-wall-street-22c94ac5
1•JumpCrisscross•17m ago•0 comments

Psychedelics disrupt normal link between brain neuronal activity and blood flow

https://source.washu.edu/2025/12/psychedelics-disrupt-normal-link-between-brains-neuronal-activit...
1•XzetaU8•18m ago•0 comments

Launching Bestmaker.ai – A Unified Tool for Fast AI Image and Video Creation

https://bestmaker.ai
1•longshu•19m ago•1 comments

Linux Foundation Announces the Agentic AI Foundation (AAIF)

https://aaif.io/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation-aaif-...
2•gmays•19m ago•2 comments

Revisiting "Let's Build a Compiler"

https://eli.thegreenplace.net/2025/revisiting-lets-build-a-compiler/
2•cui•20m ago•0 comments

Vercel Outage?

https://www.vercel-status.com
2•tpcollns•21m ago•3 comments

Show HN: Rift – a post-generation hallucination reduction layer for LLMs

https://github.com/Prrrmission/rift-hallucination-plugin
1•prrrmission•23m ago•0 comments

US plans to scrutinize foreign tourists' social media history

https://www.nytimes.com/2025/12/09/travel/social-media-tourists-visa-border-patrol.html
1•anigbrowl•23m ago•2 comments

Nvidia allowed to sell its H200 chips to China, the gov takes a 25% cut

https://www.theguardian.com/technology/2025/dec/08/trump-nvidia-ai-chips-china
1•BiteCode_dev•27m ago•0 comments

Thoughts on Team Metrics

https://adrianhesketh.com/2021/05/21/thoughts-on-team-metrics/
1•atomicnature•32m ago•0 comments

David Mermin: What's Wrong with Those Talks? [pdf]

https://aip.brightspotcdn.com/PTO.v45.i11.9_1.online.pdf
1•casparvitch•32m ago•0 comments

SpaceX to pursue 2026 IPO raising above $25B, source says

https://www.reuters.com/business/spacex-pursue-2026-ipo-raising-above-30-billion-bloomberg-news-r...
1•vinni2•33m ago•0 comments

Are the Three Musketeers allergic to muskets?(2014)

https://www.ox.ac.uk/news/arts-blog/are-three-musketeers-allergic-muskets
1•rolph•34m ago•0 comments

A Statistical Error in Estimation of Recommended Dietary Allowance for Vitamin D

https://pmc.ncbi.nlm.nih.gov/articles/PMC4210929/
2•larkinrichards•38m ago•0 comments

There's one big problem with Australia's social media ban

https://news.sky.com/story/the-troubling-lack-of-data-behind-australias-social-media-ban-on-child...
1•austinallegro•39m ago•0 comments

Jagged Alliance 2 Stracciatella

https://ja2-stracciatella.github.io/
1•breppp•39m ago•0 comments

The Artist's Hand: AI Art Pioneers That Existed Before the Boom

https://nettricegaskins.medium.com/the-artists-hand-ai-art-pioneers-that-existed-before-the-boom-...
1•SLHamlet•41m ago•0 comments

What Is Software Design? (1992)

https://www.developerdotstar.com/mag/articles/reeves_design.html
1•classified•46m ago•0 comments

Show HN: EnvMark – Git-based .env management with zero infrastructure

https://www.envmark.tech/
1•grazulex•47m ago•0 comments

Microsoft investing $17.5B in India for AI and cloud, CEO Satya Nadella says

https://apnews.com/article/india-microsoft-ceo-nadella-modi-artificial-intelligence-e1d0f47dea566...
2•whoknowsidont•47m ago•1 comments

AI Is Killing Entry-Level Programming Jobs. But Could It Also Help Save Them?

https://thenewstack.io/ai-is-killing-entry-level-programming-jobs-but-could-it-also-help-save-them/
1•CrankyBear•51m ago•0 comments

Building boring webthings for lazy maintainers

https://overengineer.dev/blog/2025/12/10/boring-webthings/
2•danburzo•52m ago•0 comments

Prompt injection is not SQL injection (it may be worse)

https://www.ncsc.gov.uk/blog-post/prompt-injection-is-not-sql-injection
1•funtech•54m ago•0 comments

How Space Alters Human DNA and What NASA Is Learning from It [video]

https://www.youtube.com/watch?v=zOCKGmiZAgM
2•thunderbong•55m 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".