2
我想在嘗試使用llvm和clang代碼時使用git。 因此,我已經從混帳鏡克隆的源文件:如何在使用svn repo的git鏡像時找到svn修訂版的git哈希值?
% git clone http://llvm.org/git/llvm.git
% cd llvm/tools
% git clone http://llvm.org/git/clang.git
現在我想用3.4.2作爲我工作的一個基地。 我發現它是svn Revision 216818的llvm和clang。但是,我丟了怎麼找到那個合適的混帳散,所以我可以這樣做:
% git checkout -b myexperiment githash_of_svnrelease_342_final_of_LLVM
% cd tools/clang
% git checkout -b myexperiment githash_of_svnrelease_342_final_of_CLANG