Hello, allow me to first of all say I'm a Git n00b and relatively new to version control entirely. We've done a good job of using Git in a Windows environemnt with Visual Studio so far, and all seems to be going well. However something that is annoying is the .gitmodules
'battle' we currently have on our hands.
If UserA creates a new sub-module, the path in .gitmodules
for the 'origin' will look something like:
ssh://usera@myserver/Repositories/NewModule
When I, User B, pull the changes from the server I download a copy of .gitmodules
with that entry. When I try to initialize the new sub-module I inevitably cannot download from myserver, because I'm userb and hold only my SSH key for userb. I end up having to change .gitmodules
to reflect my username:
ssh://userb@myserver/Repositories/NewModule
And I will end up pushing this change.
Thus we end up with a recursive problem of us both changing the username from UserA to UserB or vice versa. When either of us pull/push to the server.
Any ideas how we can resolve this issue? Maybe a shared user account for us both simply for sub-modules? Can that be done? How? Any other ideas out there, or any one that has solved this issue before?