Skip to content

Instantly share code, notes, and snippets.

@Osse
Created October 24, 2012 07:12
Show Gist options
  • Save Osse/3944504 to your computer and use it in GitHub Desktop.
Save Osse/3944504 to your computer and use it in GitHub Desktop.
git status error
When running 'git status' I get the following error when my cwd is .../repo/some_subdir
fatal: internal error: work tree has already been set
Current worktree: /full/path/to/repo/
New worktree: /full/path/to/repo/some_subdir
When I am in .../repo and run 'git status' it behaves as expected. There .git is a textfile containing:
gitdir: /some/other/full/path/myrepo
and .../myrepo contains what .../repo/.git used to contain.
@axd1967
Copy link

axd1967 commented Nov 14, 2018

I had this error with git 2.7.4, upgraded to 2.19.1 by following https://unix.stackexchange.com/a/170831/250380 and this error went away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment