Skip to content

Instantly share code, notes, and snippets.

@semaperepelitsa
Created November 18, 2010 11:42
Show Gist options
  • Save semaperepelitsa/704885 to your computer and use it in GitHub Desktop.
Save semaperepelitsa/704885 to your computer and use it in GitHub Desktop.
~% rm -rf /usr/local/.git
~% cd /usr/local
/usr/local% git init
Initialized empty Git repository in /usr/local/.git/
/usr/local[master]% git remote add origin git://github.com/mxcl/homebrew.git
/usr/local[master]% git checkout -b master2 origin/master
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/master' which can not be resolved as commit?
/usr/local[master]% git branch -D master
error: Cannot delete the branch 'master' which you are currently on.
/usr/local[master]% git branch -M master2 master
error: refname refs/heads/master2 not found
fatal: Branch rename failed
/usr/local[master]% brew update
error: pathspec 'master' did not match any file(s) known to git.
Error: Failure while executing: git checkout -q master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment