It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

automaticly pull from remote repo

Matt Lowe Apr 18, 2013


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

0 votes
Answer accepted
manthony Apr 18, 2013

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,985 views 1 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you