Lets say I do a git checkout -b my_new_branch
. Making some changes to my local files and after this I add all files with git add.
and commit it and push. After this i realize that my branch is messed up and I want to delete it.
So Im going back to my master with git checkout master
and delete the branch with git branch -D my_new_branch
.
Will all local changes be reversed?