3 ms·
The easiest way is to change a commit you've already pushed, and that something somewhere else references, and then force push it.
by eternityforest 2y ago
The easiest way is to change a commit you've already pushed, and that something somewhere else references, and then force push it.
- chipdart 2y ago> (...) and then force push it. I don't think this is a good example. Forcing a push means that the repository will lose commits, but you still keep yours in your local branch. This means the repo is not broken, but at best you have a perfectly valid local repository that just happens to be out of sync. If you rename your local branch and set it to not track the remote one, and afterwards you fetch changes from the remote branch, then you're done.