Last active
December 29, 2022 13:44
-
-
Save DevGW/b94769af5862fef52aa2e6cbd93fa377 to your computer and use it in GitHub Desktop.
git :: Deleting Bad Branch and Resetting Master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you are in master | |
# use -D if you've pushed it to remote | |
git branch -d badBranch | |
git reset --hard | |
git clean -f -d | |
# Go into database and physically delete all tables you created on badBranch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment