3 ms·
On a similar note, don't be tempted to erase parts of your commit history. There are some modes of using git rebase, push -f, commit --amend etc that attempt th
by brian-armstrong 9y ago
On a similar note, don't be tempted to erase parts of your commit history. There are some modes of using git rebase, push -f, commit --amend etc that attempt this. It's almost never a good idea. If the issue is just that something was a typo and you don't want your mistakes out there, just don't worry about it.
- _Wintermute 9y agoUnless you have a password or secret token in there.
- Simon_says 9y agoAt that point, it's better to change the secret if at all possible.
- kruczek 9y agoWhy is it not a good idea? If I know that no one pulled my commits, then what is the downside of e.g. erasing the latest commit?