-
Notifications
You must be signed in to change notification settings - Fork 4
Accidentally pushed on Master Branch solution
So I encountered this problem today as I accidentally pushed my user story to the master branch and didn't know how to solve this so I asked some for help, and I'm writing this to propagate knowledge ( ;) )we keda and also because we agreed to have some kind of a thread for these issues. In case you accidentally pushed on master branch there is a command called git revert which basically creates a commit that negates what you did when you accidentally pushed to the master branch. $git revert (commit you want to delete's serial number)
Hope this helps those who might come across this problem, if any issues arise I believe these threads will be helpful for all of us. This also works with reverting any commit not just the ones on master in case you realize you pushed something faulty to the project.