On Fri, Nov 13, 2009 at 08:20:12AM -0700, AJ ONeal wrote:
> I want to see a list of past commits with comment and or date and files
> changed, something like
> $ git rev-list [some options]
> 87648   Nov 10 12:34pm           "fandagos are working again"
>                                                             file1.cpp
>                                                             file17.cpp
>                                                             file3.cpp
> 98765   Nov 11 2:11pm           "changed the pendobobber"
>                                                             file4.cpp
>                                                             file17.cpp
>                                                             file6.cpp

git log --pretty=medium --abbrev-commit --name-status

Instead of typing that nasty command each time, you can create an alias
in ~/.gitconfig by adding the following line to the [alias] section:
ajlog = log --pretty=medium --abbrev-commit --name-status

Then you can just run git ajlog in the future.

> $ git checkout [some options like file17.cpp --from-commit=87648]

git checkout 87648 file17.cpp

-- 
Byron Clark
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to