Fixes the issues that a local branch is preferred over remote
Merge pull request #8 from terwey/alternate

Fixes the issues that a local branch is preferred over remote