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

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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

256 views 0 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot