[tei-council] git help

Hugh Cayless philomousos at gmail.com
Fri Sep 5 09:51:19 EDT 2014


If you just want to see a specific file, and not checkout everything as it
was on that date, I'd use Peter's method to get the commit hash you want
and then:

git show <hash>:<filename>

which will open the file for you in less if you're on a unixy system (no
idea what happens on Windows). The command can also be piped or redirected
to a file.



On Fri, Sep 5, 2014 at 9:41 AM, Peter Stadler <stadler at edirom.de> wrote:

>  git log --since 2014-08-13T18:30:00 --until 2014-08-14T18:30:00
> will list the commits including the hash, e.g.
> 63b16828b1297a85fe22997721cab3c678d32605
>
> use that for checkout
> git checkout 63b16828b1297a85fe22997721cab3c678d32605 (this kind of
> switches your head to that commit and automatically detaches head for
> "discardable experiments")
>
> Best
> Peter
>
> Am 05.09.2014 um 15:33 schrieb Sebastian Rahtz <
> sebastian.rahtz at it.ox.ac.uk>:
>
> > things like
> >
> > git checkout 'master@{1979-02-26 18:30:00}’
> >
> > ?
> >
> > --
> > Sebastian Rahtz
> > Director (Research) of Academic IT
> > University of Oxford IT Services
> > 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
> >
> > Não sou nada.
> > Nunca serei nada.
> > Não posso querer ser nada.
> > À parte isso, tenho em mim todos os sonhos do mundo.
> >
> > --
> > tei-council mailing list
> > tei-council at lists.village.Virginia.EDU
> > http://lists.village.Virginia.EDU/mailman/listinfo/tei-council
> >
> > PLEASE NOTE: postings to this list are publicly archived
>
>
> --
> tei-council mailing list
> tei-council at lists.village.Virginia.EDU
> http://lists.village.Virginia.EDU/mailman/listinfo/tei-council
>
> PLEASE NOTE: postings to this list are publicly archived
>


More information about the tei-council mailing list