I have a repository in my local machine. This repository has 2 git remotes. Remotes A and B.
- Remote A requires
user.nameX anduser.emailY. - Remote B requires
user.nameZ anduser.emailW.
Can this be achieved in git? If so, how?
I have a repository in my local machine. This repository has 2 git remotes. Remotes A and B.
user.name X and user.email Y.user.name Z and user.email W.Can this be achieved in git? If so, how?
Say you have an account in gitlab with user name usergitlab with emails email@1, email@2, ... And that you also have an account in github with user name usergithub with emails email@2, email@3, ...
If your repo has a remote with two different urls, one for github:org/repo, another for gitlab:org/repo, and your local git email is email@2, then the name of the commit's author depends on the name of the user in gitlab and in github, that is, usergitlab and usergithub respectively.