If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account. code example
Example: genrate shh key github
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"