How can I have some debug information regarding git/git-shell?
I had a problem, that user1
could clone a repository without problem, while user2<
If its over SSH, you can use the following:
For a higher debug level for type -vv or -vvv for debug level 2 and 3 respectively:
# Debug level 1
GIT_SSH_COMMAND="ssh -v" git clone
# Debug level 2
GIT_SSH_COMMAND="ssh -vv" git clone
# Debug level 3
GIT_SSH_COMMAND="ssh -vvv" git clone
This is mainly useful to handle public and private key problems with the server. You can use this command for any git command, not only 'git clone'.