Using fetch flag fails sometimes.

When you use the fetch flag the command fails because the fetch fails when the remote branch doesn't exists. Add a check to see if the remote branch exists and if it does not issue an warning instead of an error.