How to read source code using git? -


i downloaded source code github. want read program though out initial commits last 1 step step. possible read ver.1 first read ver.2 , on.. using git ?

you can use git log list of commits. if want read complete code @ each revision can pass hash git checkout checkout revision , poke around; if want see changes can use git show. recommend using client latter case though, tig, let step through each commit , see changes:

screenshot of tig http://mrozekma.com/tig.png


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -