3 ms·
> Only amend commits that only exist in your local copy or you're gonna have a bad time. Would you consider linking more information or adding an explanation o
by ttymck 4y ago
> Only amend commits that only exist in your local copy or you're gonna have a bad time.
Would you consider linking more information or adding an explanation of "a bad time"? I think it's really confusing for newcomers to understand the implications of "public commits", or even what "public" means.
- everybodyknows 4y agoThe essential question is whether any collaborator might have already based their own work on a commit you've made available to them earlier, by a 'git push'. If so, your pushed work cannot be modified (carrying a new hash) without invalidating theirs (depending upon old hash).