SourceTree commit and push auto

Melanie Strahl April 28, 2013

Hi !

Is it possible to send my updated files without having to click on "commit" and "push" ?
SourceTree can it automatically commit on bitbucket while there is not conflict ?

Thanks

2 answers

1 vote
Melanie Strahl April 28, 2013

Thank you but I thought more to not need click on sourceTree. When my file is updated (local), it's automatically sent to bitbucket via sourcetree which alert me if conflict.

KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 28, 2013

I'm not sure how that would work, Melanie. This wouldn't be done via SourceTree if that was the case, you'd need to call Git/Hg directly by using some OS-level hook that looked for files being saved in a specific directory and then calling Git/Hg itself.

I wouldn't recommend this, however, as file saves are so frequent you'd be committing and pushing constantly. At what point would you commit and save? The moment the file was saved?

Melanie Strahl April 28, 2013

I update my files really often. This was to able to work in team without problems to overwrite the work of the others. We would like send our code on server when we save file i.e commit + push when we save file.

It's to save a little time.

stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 28, 2013

This is really not how DVCS is supposed to work, one of the major advantages of it is that you work locally most of the time and push / pull less frequently. It sounds like you really need some kind of real-time collaboration tool like https://squadedit.com/

Melanie Strahl April 29, 2013

Ok, I will see. Thanks a lot !

1 vote
KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 28, 2013

Hi Melanie,

Sure is, on the commit sheet you can click on a checkbox towards the bottom of the sheet that says "Push commit immediately to.." and depending on whether you're using Mercurial or Git there may or may not be a drop-down list of where to push it to.

Hope that helps

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events