Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I use repo to sync by date? (possible in git)

For example, I want to download the source as of March 1 at 3pm. I need a way to grab a specific base of CyanogenMod9 source. It would be nice to use a tag or commit ID, but the source is organized in several sub-repositories that don't have common tags. I'm thinking I could checkout by date. Suggestions?

share|improve this question

Looks like I'll have to use repo forall. This requires sync'ing everything first (can't checkout older code until repository is fully downloaded).

repo forall -c 'git checkout `git rev-list --all -n1 --before="2012-03-01 15:00"`'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.