What Discard all changes in Xcode source control actually does?
<p>As in question, I wonder if there is some documentation about what this Xcode command does (Source Control -> Discard all changes) ?</p>

<p>I guess it reverts to last commit but on local branch ? Can somebody confirm that it doesn't affect the same remote branch automatically ?</p>