fatal: This operation must be run in a work tree


This question already has an answer here:


You repository is bare, i.e. it does not have a working tree attached to it. You can clone it locally to create a working tree for it, or you could use one of several other options to tell Git where the working tree is, e.g. the --work-tree option for single commands, or the GIT_WORK_TREE environment variable. There is also the core.worktree configuration option but it will not work in a bare repository (check the man page for what it does).

# git --work-tree=/path/to/work/tree checkout master
# GIT_WORK_TREE=/path/to/work/tree git status

Need Your Help

what is the size of empty class in C++,java?

java c++ empty-class

What is the size of an empty class in C++ and Java?

Debugging a Deadlock with Windbg's !clrstack command

c# debugging deadlock windbg

When I issued clrstack command, I got the following output. It is the callstack of a blocking thread which owns a deadlock and results in a deadlock. Is that its exact purpose? Does it have any other