Set the path to the working directory for this repository
The working directory doesn't need to be the same one
that contains the .git
folder for this repository.
If this repository is bare, setting its working directory will turn it into a normal repository, capable of performing all the common workdir operations (checkout, status, index manipulation, etc).
The path to a working directory
0, or an error code