I am looking for one git command (if possible) to check files from one repository at a specific time (for example, the time of my local branch).
Scenario: I checked Branch1 at a specific time, maybe 2 days ago (12/11/2015 19:05). I want to check out another branch, i.e. Branch2 from 2 days ago (12/11/2015 29:05 10 minutes after the check time for Branch1 ).
How can i achieve this?
Instead of a date, I can use a unix timestamp if that is easier.
If I use " git log -1 --format=%ct", he will give me a timestamp. I can then add 10 minutes to this timestamp and use the command below to check.
git archive --format tar --remote <HUB>:<REPO> master:`dirname <FILEPATH>` | tar -xO <FILE> > log_file.git
Is this possible in one team?
source
share