In the process of working with Git, there may come a time when you find yourself needing to update the remote repository to reflect changes made locally, especially after deleting a local commit. This scenario requires a bit more care, as it involves force-pushing changes to the remote repository.
To update the remote repository to match your local repository, including the deleted commit, you need to force-push your changes. Use the following command:
git push origin main --force
Hi, my name is Roel. I am a TALL stack developer. I created this site to document all web applications I created using the TALL stack. I exclusively built products using Laravel because I like the experience writing applications using the simplest framework/stack available.