Connecting SourceTree to BitBucket and git repo on project server

I am the current sole developer for a volunteer developed/supported content management system used to produce free websites for over 10,000+ Toastmasters public speaking clubs around the world.  I am trying to create a workable development framework that will allow for easily collaborating with additional developers in the future.  As this project has been done strictly with open source tools and volunteer labor to date using a single server (no separate dev server), the code used to be a mess.  I do have multiple revisions of code, but as we have not had any version control to date, everything is currently organized by date coded filenames and folders.

We have installed git on our single AWS server and I have gotten a free 5 person Bitbucket account.  I have SSH and FTP access to the server.

What I would like to set up is having the repository on the server be the master repository and have BitBucket as a backup and for collaboration.  I have installed sourcetree.

I am struggling to get this set up properly.  I think I have the connection between BitBucket and SourceTree set up properly, but I am at a bit of a loss to get SourceTree set up to connect to the repository on our server.   I cannot use http for that as the git repository is not on the http:// path.

Any assistance or insights on how to move forward are greatly appreciated.

2 answers

This widget could not be displayed.

On the client side of this, it sounds like you are going to want to set up two remotes in SourceTree, Bitbucket and your AWS server. You could also set Bitbucket up as a remote of the AWS server repo, and you can choose which of the two should be the remote for developers, there are advantages both ways.

To get the AWS server working as a remote, check out Chapter 4 of the Git Book, specifically section 4.4: http://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server. Basically, if you use the ssh:// protocol, there is little that needs to be done besides having SSH access.

The info here may also be useful if you are trying to avoid needing to run any git commands directly on the AWS server: http://stackoverflow.com/questions/7152607/git-force-push-current-working-directory

This widget could not be displayed.

On the web page of your repo, there is a clone option:

image2015-4-16 13:7:45.png

This gives you an URL to copy/paste into SourceTree.

 

I think I already have that set up.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

718 views 1 3
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