Re: date based checkouts in git possible?
- In reply to: Chris : "date based checkouts in git possible?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Jun 2022 06:13:37 UTC
On 6/4/2022 12:12 AM, Chris wrote: > git checkout `git rev-list -n 1 --before=<previous-date>" freebsd/main` > which returns > Your branch is up to date with 'freebsd/main'. > > What must I do? Or will I need to convert/import it into svn? Hi Chris; The message above makes me think the hash returned by rev-list is also HEAD. Do this: git fetch && git pull ... to make sure your cloned repo is up to date. To do work with the branch in that state, I'd create a new branch based on the commit hash returned by rev-list. If you just want to build the kernel, the git-checkout command you gave above should result in your working copy being in a detached head state which is probably what you wanted.