how to git checkout from a branch already exists in github code example Example: A branch named 'master' already exists. git checkout -b master origin/master