Skip to content

Instantly share code, notes, and snippets.

@DevGW
Last active December 29, 2022 13:44
Show Gist options
  • Save DevGW/b94769af5862fef52aa2e6cbd93fa377 to your computer and use it in GitHub Desktop.
Save DevGW/b94769af5862fef52aa2e6cbd93fa377 to your computer and use it in GitHub Desktop.
git :: Deleting Bad Branch and Resetting Master
# 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