I've just started using git (like right this second). I've been invited to use a project that contains some submodules and I've been given permission through my Github account. When I cloned the repo, I got some errors:
$ git submodule init
Submodule 'js/Common/enginelite' ([email protected]:clientName/EngineLite.git) registered for path 'js/Common/enginelite'
$ git submodule update
Cloning into 'js/Common/enginelite'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Is there a way to pass credentials during this? Is there something I have to do locally or on Github? Thanks!
Look in js/Common/enginelite if there's a directory named .git edit the text file .git/config. If there's a file named .git, it will have a line that reads 'gitdir: ...' look in that directory and edit the config file there. Hopefully the contents of the file will show you where you can add your username@ in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With