automaticly pull from remote repo


I use one of my Bitbucket repos for a set of PHP librarys.

Once I have tested an addition to the library, i push it to my bitbucket.

Is there a way to check from command line (debian linux) when a repo was last updated?

Curently i just run 'git pull' every so often via cron from each of my machines that use the librarys, but was hoping there may be a better way, that puts less load on the bitbucket servers?

Was looking for something like :


and then if that date has changed, then i would do a full 'git pull'

Or would i be just as well running my current git pull from crontab?



1 answer

1 accepted

This widget could not be displayed.

Hi Matt,

Repository objects have a last_updated field. See the repository Resource here. Rather than polling each individual repo under your account, you could get your profile and check each repo in the repositories array.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,305 views 8 11
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