Skip to content

Instantly share code, notes, and snippets.

@rich97
Created February 3, 2010 06:36
Show Gist options
  • Save rich97/293395 to your computer and use it in GitHub Desktop.
Save rich97/293395 to your computer and use it in GitHub Desktop.
#The normal way
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins$ ls -la
total 8
drwxr-xr-x 2 rich97 rich97 4096 2010-02-03 15:30 .
drwxr-xr-x 13 rich97 rich97 4096 2010-01-22 17:15 ..
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins$ git clone git@github.com:rich97/CakeCMP.git
Initialized empty Git repository in /home/rich97/Webroot/CakeCMP/app/plugins/CakeCMP/.git/
remote: Counting objects: 1508, done.
remote: Compressing objects: 100% (1432/1432), done.
remote: Total 1508 (delta 256), reused 1235 (delta 60)
Receiving objects: 100% (1508/1508), 844.43 KiB | 474 KiB/s, done.
Resolving deltas: 100% (256/256), done.
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins$ cd CakeCMP/
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins/CakeCMP$ git checkout -b permissions-rewrite origin/permissions-rewrite
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/permissions-rewrite' which can not be resolved as commit?
#How you managed to do it...
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins$ git clone git://github.com/rich97/CakeCMP.git && cd CakeCMP && git checkout -b permissions-rewrite origin/permissions-rewrite
Initialized empty Git repository in /home/rich97/Webroot/CakeCMP/app/plugins/CakeCMP/.git/
remote: Counting objects: 1508, done.
remote: Compressing objects: 100% (1432/1432), done.
remote: Total 1508 (delta 256), reused 1235 (delta 60)
Receiving objects: 100% (1508/1508), 844.43 KiB | 262 KiB/s, done.
Resolving deltas: 100% (256/256), done.
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/permissions-rewrite' which can not be resolved as commit?
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins/CakeCMP$ git checkout -b permissions-rewrite origin/permissions-rewrite
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/permissions-rewrite' which can not be resolved as commit?
rich97@Ubuntu:~/Webroot/CakeCMP/app/plugins/CakeCMP$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment