3 ms·
Well, no, because Git doesn't prevent you from modifying commits pointed to by tags. It prevents you from modifying the tags themselves, which point to the orig
by geofft 6y ago
Well, no, because Git doesn't prevent you from modifying commits pointed to by tags. It prevents you from modifying the tags themselves, which point to the original commits, but that's not relevant - if your workflow involves a lot of "git commit --amend" or 'git rebase -i", it isn't going to stop you from accidentally rebasing or reordering tagged commits.
Also, I don't think I've ever seen a repo where every pushed commit is tagged, and I suspect that will make lots of git operations that look at all refs scale poorly. The use case is that if I make a branch off current master, and then I run "git commit --amend" thinking I've already run "git commit," it shouldn't let me modify that commit - whatever it might be.
- frutiger 6y ago> modifying commits pointed to by tags You can’t modify commits. They are immutable. Tagged commits are reachable so they won’t get gc’ed. > Also, I don't think I've ever seen a repo where every pushed commit is tagged Sorry, I thought we were talking about releases (aka important commits). I’ve certainly seen plenty of repos where all the releases are tagged.