Nayan
Nayan

Reputation: 21

Same username and email for both github and bitbucket account

Hi I share the same username and email for my github and bitbucket account . Now I have configured git on my linux pc with the below commands

    $ git config --global user.name "user name"
    $ git config --global user.email "email"

As I have same username and email for github and bitbucket which account will work in this case ? How will push and pull work ? Is there a way to use both accounts at same time ?

Upvotes: 1

Views: 880

Answers (1)

Eng_Farghly
Eng_Farghly

Reputation: 3017

Both account will work without any problem but you should configure the remote link for Github and Bitbucket for example for github account:

git remote add github https://github.com/username/repositoryName.git

And push to github

git push github master

For bitbucket account:

git remote add bitbucket https://bitbucket.org/workspace/repositoryName.git

And push to bitbucket:

git push bitbucket master

Upvotes: 2

Related Questions