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

Quote:
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.
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote