Pulling git submodules using SSH key instead of password -
i have 5 entries in .gitmodules:
[submodule "workbench/myuser/my-package"] path = workbench/myuser/my-package url = git@bitbucket.org:myuser/my-package.git
everytime git submodule foreach git pull origin master
update them all, i'm asked password each one. how make git use ssh key access submodule repos instead of using password?
yes, quite simple, while adding submodule have choose ssh key link (means no https) in bitbucket or gitacc there. before link.
so once machine ssh key linked in bitbucket/gitacc. thing made correctly ask password each time. have check main project checkout ssh url or not.
another possibility individual repo don't have ssh access.
all these correct go. should work.
Comments
Post a Comment