rack option: git checkout --track origin/ If you'd like to always have checkouts of an ambiguous prefer one remote, e.g. the 'origin' remote, consider setting checkout.defaultRemote=origin in your config.