frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Paid $2400 to Cloudflare, support refuses to help

117•thekonqueror•12h ago•21 comments

Aura – Detecting Fake Cell Towers with RF Fingerprinting AI

6•sadpig70•3h ago•0 comments

Know Your Rights: A Legal Survival Guide for Indian College Students (2024 Laws)

2•Chakrabarti•15m ago•0 comments

Ask HN: What Single File Web Apps do you know of?

4•calebm•6h ago•5 comments

How WASM DB and worker messaging helped me handle 500MB in 2s in browser

4•vinserello•11h ago•1 comments

What problems are worth solving?

6•KopyWasTaken•7h ago•2 comments

C++ ranges/views vs. Rust iterator

2•bijan7•8h ago•1 comments

Mirai Variant "Gayfemboy" Infecting 15K+ Devices Daily – Mitigation Ideas?

7•garduno_AA•9h ago•3 comments

GitHub Attack – branches sending secrets to webhook

6•danieldspx•9h ago•2 comments

Ask HN: What's a good 3D Printer for sub $1000?

5•lucideng•11h ago•4 comments

Ask HN: Does anyone have any screenshots of fucked company?

3•iamflimflam1•12h ago•4 comments

Cloudflare Security Mistriages on Account Takeover

4•matured_kazama•13h ago•0 comments

Ask HN: Costs for US sales tax compliance for a two-sided marketplace

3•throway-9998888•16h ago•1 comments

Google Ends Support for Lynx Browser

102•zhenyi•5d ago•43 comments

Ask HN: Getting over Burnout with Imposter Syndrome

20•chrsig•3d ago•5 comments

Git Without Stash/Tags

3•birb07•1d ago•5 comments

Lost $300 due to an API key leak from "vibe coding" – Learn from my mistake

4•liulanggoukk•1d ago•11 comments

Ask HN: Who wants to be hired? (September 2025)

124•whoishiring•2w ago•390 comments

You've reached the end!

Open in hackernews

Git Without Stash/Tags

3•birb07•1d ago
Wouldn't git be simpler without stashes and tags?

Tags can be deleted and recreated, so they are just like branches and not immutable as some claim.

Same goes for stashes. They are commits which can't be pushed. Stashes could be implemented by creating a new branch and committing both with a generated name.

Am I missing something? Do both things provide more value than they add complexity/things to learn? :)

Comments

sl8s•1d ago
Tags in Git are useful when you need to make a release, upload files to that release, and provide a download link for the file. That’s when I personally use tags.
aosaigh•18h ago
I use stashes like I would use a shelf above a workbench - to put things for a few minutes while I clean up. I think it's a nice feature.
giveita•17h ago
It is like a faucet and a cistern. Same plumbing, different porcelain.
scrapheap•18h ago
Tags and Stashes are both commonly used features of Git. There's a lot of value of having well defined ways of handling them, especially when it comes to collaborating with others on developing code.

With the way Stashes are implemented, you don't have to worry about someone accidentally pushing a branch up that was really just some changes they wanted to store temporarily without messing up the repository's history.

With the way Tags are implemented, you don't have to have an agreement with all your colleagues about how a branch should be named to represent a tag. You also don't have to worry about how you have named the branch you're working on that will add support to your current project for it's own concept of tagging.

abstractspoon•17h ago
I use stashes all the time, often when I want to explore two different solutions to a problem.

I also use them when I've lost track of the original code and stashing lets me switch back and forth with ease.

I don't use tags.