K
K
Kernokus2020-04-22 23:13:57
git
Kernokus, 2020-04-22 23:13:57

Two Gitlab and Github profiles, do I need to change the configuration between gitbash accounts when working on each of them?

Good afternoon. I have two accounts - 1 on github, 2 on github. Until now, I have only committed and worked on github, but now there is a need to work on github. The question is this - if I clone a project from gitlab, go to a certain branch, work there and make a commit, will there be any problems? The fears are that in gitbash using the git config --list command all settings from the github account are displayed. Will this interfere with working with gitlab or should I set the account from gitlab in gitbash

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2020-04-23
@Kernokus

Which local repository has a link to origin - the remote repository. If one repository is cloned from gitlab, and the second from github, then they will have corresponding origins, pushes will occur to different servers
And inside each individual repository there is a list of configs that overrides the global list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question