Changes between Version 14 and Version 15 of GitCookbook

Show
Ignore:
Timestamp:
09/09/09 08:03:50 (5 years ago)
Author:
dukeleto
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GitCookbook

    v14 v15  
    22 
    33Before you do anything, you should probably install the bash completion script for git, it makes the learning curve a lot less steep: 
     4 
    45http://repo.or.cz/w/git.git?a=blob;f=contrib/completion/git-completion.bash 
    56 
     
    6061 
    6162{{{ git log -p  }}} to see the commit history as a series of patches . 
     63 
     64For a colored ascii-art visualization of your git history, with author, time and branch name : 
     65 
     66{{{ git log --pretty=format:'%C(yellow)%h%Creset %s %Cred%an%Creset %Cblue%d%Creset %Cgreen%cr%Creset %cd' --graph --all }}} 
     67 
     68(requires git 1.6.x ) 
    6269 
    6370You can give '''git log''' a file name or directory or a branch name. Very useful!