Working with git: git equivalent of "svn up -r..."

Davide Liessi davide.liessi at gmail.com
Fri Nov 25 15:31:15 CET 2016


2016-11-25 15:27 GMT+01:00 Davide Liessi <davide.liessi at gmail.com>:
> Try in the directory
> git checkout 72164060176afd82227b03e05aede0ce292f093f .
> or even
> git checkout 72164060176afd82227b03e05aede0ce292f093f <specific file>
>
> The last argument can be any path to file or directory in the repository.

I'd just add that the command
git checkout -- <path>
adverstised by git status "to discard changes in working directory" is
equivalent to
git checkout <current-branch> <path>

Best wishes.
Davide


More information about the macports-dev mailing list