Let me first say that I am Git n00b and relatively new to version control. We have done a good job using Git on Windows since Visual Studio so far, and everything seems to be going well. However, what annoys is the .gitmodules battle that we currently have in our hands.
If UserA creates a new submodule, the path in .gitmodules for "origin" will look something like this:
ssh:// usera@myserver /Repositories/NewModule
When I, user B, pull the changes from the server, I download a copy of .gitmodules with this entry. When I try to initialize a new submodule, I inevitably cannot load from myserver, because I am a user and save only my SSH key for userb. I need to modify .gitmodules to display my username:
ssh:// userb@myserver /Repositories/NewModule
And I end up pushing this change.
Thus, we get a recursive problem for us, changing the username from UserA to UserB or vice versa. When any of us pulls / clicks on the server.
Any ideas how we can solve this problem? Maybe the general user account is for us as submodules? It can be done? How? Any other ideas out there or someone who solved this problem before?
source share