Skip to content

Instantly share code, notes, and snippets.

@mikedamoiseau
Created July 11, 2014 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikedamoiseau/872324f84ba333857a0f to your computer and use it in GitHub Desktop.
Save mikedamoiseau/872324f84ba333857a0f to your computer and use it in GitHub Desktop.
git create branch from remote
git checkout -b nomDeMaBrancheDistante origin/nomDeMaBrancheDistante
if
```
fatal: git checkout: updating paths is incompatible with switching branches/forcing
Did you intend to checkout ‘origin/‘ which can not be resolved as commit?’
```
then
```
git remote update
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment