To undo a merge commit created using pull :
git reset
If the merge was a fast merge (this means that you did not do any work locally), then git reset --hard in sha1 of the last commit that you want to save locally.
To get a remote branch without merging:
git fetch origin
The remote branch will appear something like origin/master (with git branch -a ).
source share