frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

'Vampire Squid from Hell' Reveals the Ancient Origins of Octopuses

https://www.sciencealert.com/vampire-squid-from-hell-reveals-the-ancient-origins-of-octopuses
1•6LLvveMx2koXfwn•1m ago•0 comments

I Built an Automated AI News SaaS – and Yes, You Can Clone the Whole Thing

https://ainewshub2025.netlify.app/
1•dhren•1m ago•1 comments

Airbus faces new quality problem on A320 jets, sources say

https://www.reuters.com/business/aerospace-defense/airbus-faces-new-quality-problem-dozens-a320-j...
1•belter•2m ago•0 comments

Around The World, Part 27: Planting trees

https://frozenfractal.com/blog/2025/11/28/around-the-world-27-planting-trees/
1•todsacerdoti•4m ago•0 comments

The Profit Behind Woke

https://substack.com/home/post/p-178888847
3•pjb88•6m ago•0 comments

Ask HN: Does anybody want LLMs run code in their developer environments?

1•yash_vaddi•7m ago•0 comments

Has the AI Bubble Popped Yet?

https://hastheaibubblepoppedyet.com/
2•bandamo•10m ago•1 comments

1GB Raspberry Pi 5, and memory-driven price rises

https://www.raspberrypi.com/news/1gb-raspberry-pi-5-now-available-at-45-and-memory-driven-price-r...
6•shrx•10m ago•0 comments

UK Government plans new powers to label dissenting movements as 'subversion'

https://netpol.org/2025/11/28/government-plans-new-powers-to-label-dissenting-movements-as-subver...
13•robtherobber•12m ago•1 comments

Doctype – '80s BASIC type-in mags are back, but this time for HTML

https://vole.wtf/doctype/
2•OuterVale•14m ago•0 comments

Self-hosting a Matrix server for 5 years

https://yaky.dev/2025-11-30-self-hosting-matrix/
15•the-anarchist•21m ago•1 comments

Have We Been Explaining E = Hν Backwards for 100 Years?

https://pajuhaan.medium.com/have-we-been-explaining-e-hν-backwards-for-100-years-bd140fec78a9
1•pajuhaan•24m ago•1 comments

How Toxic Culture Costs Companies Time, Talent, and Money and How to Fix It?

https://formrecipe.com/blog/how-toxic-culture-costs-companies-time-talent-money
1•deffrin•27m ago•0 comments

Rooted Resistance: Rashid Johnson's Potted Plants as Living Symbols

https://worldsensorium.com/rooted-resistance-rashid-johnsons-potted-plants-as-living-symbols/
1•dnetesn•28m ago•0 comments

How to Print a Human

https://nautil.us/how-to-print-a-human-1250487/
2•dnetesn•29m ago•0 comments

Supreme Court to Hear Copyright Battle over Online Music Piracy

https://www.nytimes.com/2025/12/01/us/politics/supreme-court-copyright-music-piracy.html
4•pseudolus•29m ago•1 comments

React-State-Custom – Composable global state with native lifecycle management

https://github.com/vothanhdat/react-state-custom
1•datvo•31m ago•1 comments

3D-printable concrete alternative hardens in three days, not four weeks

https://newatlas.com/materials/3d-printable-concrete-alternative/
1•wjSgoWPm5bWAhXB•35m ago•0 comments

A unified geometric model of structural space

https://zenodo.org/records/17687286
1•flexionU•36m ago•0 comments

DeepSeek-v3.2

https://huggingface.co/deepseek-ai/DeepSeek-V3.2
13•meetpateltech•36m ago•0 comments

Ilya Sutskever – We're moving from the age of scaling to the age of research [video]

https://www.youtube.com/watch?v=aR20FWCCjAs
3•bhaktatejas922•39m ago•0 comments

New semiconductor could allow classical and quantum computing on the same chip

https://www.livescience.com/technology/computing/new-semiconductor-could-allow-classical-and-quan...
1•donutloop•40m ago•0 comments

Google Quantum AI realizes three dynamic surface code implementations

https://phys.org/news/2025-11-google-quantum-ai-dynamic-surface.html
1•donutloop•41m ago•0 comments

What Is a City Super App and Why Every City Needs One

https://mertbulan.com/2025/12/01/what-is-a-city-super-app-and-why-every-city-needs-one/
1•mertbio•48m ago•0 comments

Not Just Gaza. From West Bank to Syria and Lebanon, Israel's Onslaught Continues

https://www.theguardian.com/commentisfree/2025/dec/01/gaza-west-bank-syria-lebanon-israel-ceasefire
10•hebelehubele•50m ago•0 comments

Modularization of Supercritical CO2 System for Aircraft Carrier Nuclear Power

https://www.mdpi.com/1099-4300/27/11/1154
1•PaulHoule•50m ago•0 comments

Content-Security-Policy Trust Erosion Scanner

https://github.com/Splinters-io/ghosted
1•splintersio•50m ago•1 comments

AI Hype TRAcking Project

https://poritz.net/jonathan/aitrap/index.html
2•runningmike•52m ago•0 comments

Xlibre is a fork of the Xorg Xserver with lots of code cleanups

https://x11libre.net/
21•doener•56m ago•13 comments

Why Is ChatGPT for Mac So Good?

https://allenpike.com/2025/why-is-chatgpt-so-good-claude
4•ingve•56m 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".