frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

AI adoption will accelerate the e-waste crisis

https://restofworld.org/2026/global-ewaste-crisis/
1•donohoe•43s ago•0 comments

Atlassian is changing how we use customer data on August 17, 2026

https://www.atlassian.com/trust/ai/data-contribution
1•TechTechTech•46s ago•0 comments

VTK Integrating WebGPU

https://www.kitware.com/webgpu-one-graphics-api-to-rule-them-all/
1•mehmetoguzderin•59s ago•0 comments

Who Is Amy Eskridge? Scientist's Death Queried Amid US Expert Mysteries

https://www.newsweek.com/who-is-amy-eskridge-scientist-death-queried-us-expert-mysteries-11843659
1•Jimmc414•3m ago•0 comments

Potential breakthrough pancreatic cancer drug succeeds in late-stage trial

https://www.cnbc.com/2026/04/13/pancreatic-cancer-drug-daraxonrasib-from-revolution-medicines-suc...
2•gmays•3m ago•0 comments

Microsoft Ups FAT32 Size Limit from 32GB to 2TB

https://hackaday.com/2026/04/17/microsoft-finally-ups-fat32-size-limit/
1•speckx•5m ago•0 comments

AWS Security Agent on-demand penetration testing now generally available

https://aws.amazon.com/about-aws/whats-new/2026/03/aws-security-agent-ondemand-penetration/
2•mariuz•6m ago•0 comments

The Strait of Hormuz is now open

https://www.cnn.com/2026/04/17/investing/oil-strait-hormuz-iran
1•ricberw•7m ago•0 comments

AI Tool Blindness

https://www.wespiser.com/posts/2026-04-17-ai-tool-blindness.html
1•wespiser_2018•7m ago•1 comments

Solo founders and indie hackers should have a backup plan

https://alcazarsec.com/deadmanswitch/use-cases/solo-founders
1•alcazar•8m ago•0 comments

Two US citizens sentenced for running North Korean laptop farms

https://www.tomshardware.com/tech-industry/two-us-citizens-get-combined-18-years-in-prison-for-ru...
2•drak0n1c•8m ago•0 comments

Stop Killing Games at the European Parliament Full Hearing [video]

https://www.youtube.com/watch?v=QXdmoeaYZ9Y
2•weli•8m ago•0 comments

Show HN: Using an AI agent to refine a ML model for Zephyr RTOS

https://rufilla.com/the-mlforge-proof-of-concept/
1•OOHehir•9m ago•0 comments

Cloudflare: The Agent Readiness score. Is your site agent-ready?

https://blog.cloudflare.com/agent-readiness/
2•kol3x•9m ago•1 comments

Consider sending a list of everything you did to your coworkers everyday

https://aelerinya.substack.com/p/consider-sending-a-list-of-everything
1•surprisetalk•9m ago•0 comments

Scientists Develop "Molecular Scissors" Alternative to Cas9

https://humanprogress.org/scientists-develop-molecular-scissors-alternative-to-cas9/
1•surprisetalk•9m ago•0 comments

Rejoice: A concatenative multiset language built on Fractran-like primitives

https://wiki.xxiivv.com/site/rejoice
1•surprisetalk•10m ago•0 comments

Why Amazon Is Buying Globalstar–and What It Means for Your iPhone

https://www.wired.com/story/why-amazon-is-buying-globalstar-and-what-it-means-for-your-iphone/
1•smurda•10m ago•0 comments

Chinese fabs import US chipmaking equipment via Singapore and Malaysia

https://www.tomshardware.com/tech-industry/chinese-chip-tool-makers-booked-record-2025-revenues
1•speckx•11m ago•0 comments

How should you change your life if we are being watched by alien drone probes?

https://marginalrevolution.com/marginalrevolution/2026/04/how-should-you-change-your-life-decisio...
1•surprisetalk•12m ago•1 comments

Distill MCP – Turn your reading queue into a podcast, via Claude Code MCP

https://github.com/davidlbatey/distill_mcp
2•davidlbatey•12m ago•1 comments

Is 1 Nit Enough? – Phone Minimum Display Brightness

https://www.lttlabs.com/articles/2026/04/16/phone-minimum-display-brightness
1•LabsLucas•14m ago•0 comments

Linux 7.1 Crypto Code Rework Enables More Optimizations by Default

https://www.phoronix.com/news/Linux-7.1-Crypto
2•Brajeshwar•15m ago•0 comments

What Is Infrastructure from Code?

https://encore.dev/blog/what-is-infrastructure-from-code
2•andout_•16m ago•2 comments

A third of Americans don't drive. So why is our transportation so car-centric?

https://yaleclimateconnections.org/2025/01/american-transportation-revolves-around-cars-many-amer...
3•doener•16m ago•0 comments

Teaching a Model to Code

https://rig.ai/blog/teaching-a-model-to-code
3•adam_patarino•16m ago•1 comments

Replaced Official Release Date Trailer [video]

https://www.youtube.com/watch?v=fuUo7_VaboE
2•doener•18m ago•0 comments

Anthropic Quadruples London Office Amid US Regulatory Tensions

https://www.techbuzz.ai/articles/anthropic-quadruples-london-office-amid-us-tensions
3•gaurangt•20m ago•0 comments

White House Investigating Wave of Missing or Dead Scientists

https://www.newsweek.com/white-house-investigating-wave-mystery-dead-scientists-11836410
3•tejohnso•21m ago•0 comments

High Amplitude Disagreeableness – Stay SaaSy

https://blog.staysaasy.com/p/high-amplitude-disagreeableness
2•kiyanwang•21m 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•11mo ago

Comments

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

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

to:

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

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

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

Oh and maybe cherry-pick

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