Skip to content

Instantly share code, notes, and snippets.

@joallard
Created February 7, 2014 20:55
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 joallard/8871673 to your computer and use it in GitHub Desktop.
Save joallard/8871673 to your computer and use it in GitHub Desktop.
Git detached working tree
sandyhill:dev-tmp jon$ mkdir bare.git && cd bare.git
sandyhill:bare.git jon$ git init --bare
Initialized empty Git repository in /Users/jon/dev-tmp/bare.git/
sandyhill:bare.git jon$ git config core.worktree ~/dev-tmp/bare-foo/
sandyhill:bare.git jon$ git config core.bare false
fatal: core.bare and core.worktree do not make sense
sandyhill:bare.git jon$ git --version
git version 1.8.5.1
sandyhill:bare.git jon$ git config core.worktree
fatal: core.bare and core.worktree do not make sense
sandyhill:bare.git jon$ ls -a
. .. HEAD config description hooks info objects refs
sandyhill:bare.git jon$ rm -rf *
sandyhill:bare.git jon$ git init --bare
Initialized empty Git repository in /Users/jon/dev-tmp/bare.git/
sandyhill:bare.git jon$ git config core.bare false
sandyhill:bare.git jon$ git config core.worktree ~/dev-tmp/bare-foo/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment