sourcetree automation

Is it possible to automate Sourcetree so that after I make a commit in one repo I launch a commit in another repo (and automatically include a text comment linking the two versions) ?

Basically, I'm writing code in one language and using automatic code generation (repo1).

In another folder (repo2) I wish to hold the auto generated c code for use in another project.

 

Whilst I can keep everything in one repository it seems cleaner and more structured to have two.

 

 

1 answer

option 1 , if you are okay with using command line git, you may write a bash script(mac) , powershell/batch script(windows) to automate the commit in 2 directories and pass the comment as parameter to the script. 

 

option2 ,write a post commit git hook (client side) in repo1 to also trigger a commit in repo2. (PERl or shell script)

 

 

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 ...

246 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