View Single Post
Old May 15, 2011, 15:23   #14
Angband Devteam member
d_m's Avatar
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 40
Posts: 1,516
d_m is on a distinguished road
Originally Posted by Tobias View Post
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.

Originally Posted by Tobias View Post
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.
d_m is offline   Reply With Quote