creating multiple remote repos on Bitbucket from local repos using SourceTree

I've tried to look for this with the search tool, but I'm either not wording my phrase right, or I'm trying to do something completely unsupported.

I'm new to git and have been using github for mac to play with the workflow of DVCS. I am looking for a solution for our company and think Bitbucket might be it since they host everything privately.

We currently have a hundred or so small pieces of custom code kept in seperate directories depending on client/project on a windows file server. I would somehow like to make each one of these directories repositories and be able to do the initial push/creation to Bitbucket, much like I can do with the GitHub application. Is that possible at all with SourceTree? If it were a few repos to add from BB's web interface, it wouldn't be so bad, but since its hundreds, it would be far easier to drag the project root directory in, do the initial commit, and then push to the server.

Hopefully this request makes sense.



edit - To clarify; On my local machine, I would like to drag in a project directory into SourceTree and make it a git repository, I then want to commit it and push it to bitbucket. I would like this to create the remote repo on bitbucket.

2 answers

You can drag a folder in to SourceTree and if it's not a repository already it will open the New Repository window so you can create a repository for it.

As for creating the repo on Bitbucket, you can do this by clicking on Settings, then Add in the remote list. Instead of providing the URL manually you can click the 'globe' button to open up the hosted repositories view, which is where you can enter your Bitbucket account details (and other hosts). This will enable you to simply pick a BB repo as your remote, or create a new one.

There isn't a bulk way of doing this though.

I see the globe option for the mac version of SourceTree, but is there this same feature in Windows? I've been testing for Mac and Windows and the Mac side seems to have more remote repository browsing and creation features, including the missing globe.

The Windows version will be catching up with the Mac version over time, API access to Bitbucket is one of those features that hasn't made it in yet, but will in time.

Is there any time frame for getting the Windows version of SourceTree updated to support creating the repo on BitBucket?

I have the same problem. Definately need a feature that can push a new local repo to bitbucket and also create a new bitbucket repo at the same time.

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,111 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