I have a normal repo where there is a working tree and a .git folder in the same directory as the working tree.
I am trying to run the git command from outside this location using the command
git --git-dir=/path/to/repo/.git --work-tree=/path/to/repo pull /some/other/repo master
but I keep getting fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree. error fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree. .
What am I doing wrong?
git git-commit git-pull git-push
trusktr
source share