I have a branch called as masterdev.
I made some commit to that branch, so it is maybe 10 commits ahead from the masterdev that is on the server. But in fact those commits are not good anymore, so I don't want to push them.
I could revert or rebase may be to get the opposite of what I have done in those commit. But that looks like not clear at all I think.
So what I wanted to do is getting the same behavior than git pull origin masterdev if masterdev was behind.
I want to wipe out my local masterdev to get the same as on the server.