Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git submodule update and authentication

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!

like image 202
panzhuli Avatar asked Oct 25 '25 05:10

panzhuli


1 Answers

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.

like image 137
karmakaze Avatar answered Oct 26 '25 18:10

karmakaze



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!