Quote:
Originally Posted by Tobias
Also, how can you search the online tree, or the commit log, like you could on the old system?
|
Depends on what you mean. You can do things like "git log" and just scroll around to read it, or you can do "git log | grep 'hello world'" to search for 'hello world'. You can also do "git grep" if you want to find a particular piece of sourcecode (or something) that is no longer there.
Quote:
Originally Posted by Tobias
And what is the easiest way to restore a single file to the official state?
|
git checkout FILE will revert FILE to its current state in HEAD. This will be the same as the official state as long as you aren't committing to the repo yourself.