When checkout a dev branch, commiting some changes and push them to a remote, everything is working fine.
But, when i try to revert/reset/etc. the dev branch to the master branch it only works locally.
The remote branch is in that case the resetted commits ahead.
Deleting the dev branch on the remote works till an user push his local dev branch (with the resetted commits) back to the remote.
What is the best way to rebuild a fresh “dev” branch ?