Using Sourcetree to Deploy changes to a staging site...

I'm fairly new to sourcetree, at the moment we have a bitbucket repository with a development branch and a master branch, and a staging site with git installed.

I'm currently using sourcetree to commit/push changes to files onto our remote bitbucket repository into the development branch.

But is there a way using sourcetree to get the staging site to pull from this remote development branch?

I can use the terminal and ssh to the staging site and do a git pull, but can i do this within sourcetree?

1 answer

1 accepted

0 votes
Accepted answer

Your choices are basically either:

  1. Set up a scheduled job (e.g. cron) on the staging site to pull regularly from your bitbucket server. You might actually want to try using CI tools such as Bamboo to do this, or write your own scripts.
  2. Use SourceTree to push changes to the staging server. So long as the staging server has a git repo you can access via a URL, and has a hook set up to deploy when it receives new commits, the SourceTree can do this for you. You might want to look at this article about how you might set up the staging server for this:

thanks, i will have a look into this!

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