BitBucket and Sourcetree: How to set up multiple users on same system

I have several test systems where multiple users may login and pull latest tests and run them, as well as make changes and push back to the repository. We use Bitbucket and Sourcetree with Git. We are using SSH and not Mercurial.

For example, I want to be able to have UserA log into the system, and pull the latests tests, and also change tests and push them back. UserB then logs in later and does the same thing. But, all against a single repository on that system(i.e. when either user pulls, it goes to C:\Tests).

What is required for this scenario? Can the same instance of Git be used, or do they need their own? Each user needs their own SSH key? Can they use the same instance of Sourcetree, but with different logins?


1 answer

1 accepted

0 votes
Accepted answer

I believe what you are talking about should be doable, but all your obstacles are going to be in the OS, not SourceTree.

For starters, you'll need to make sure all potential users have read/write access to the repository directory and all subdirectories (including the hidden .git).

You'll also probably need to make sure the private key is accessible to all of the users. If you'd rather have per-user private keys, make sure to use an ssh agent (Pageant) that is configured to automatically start and load a key per user. You can use these instructions to make the shortcut, and put each user's shortcut in their personal startup folder. You also obviously need to register all the public keys into BitBucket.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,129 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you