資源描述:
《git用戶介紹書》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、
2、·GitUserManualChineseGit用戶手冊(1.5.3及后續(xù)版本適用)·翻譯:羅崢嶸(RobinSteven)·英文版本:http://www.kernel.org/pub/software/scm/git/docs/user-manual.htmlContents1.Preface前言2.Chapter1.RepositoriesandBranches第一章.版本庫與分支1.Howtogetagitrepository如何獲取一個版本庫2.Howto
3、checkoutadifferentversionofaproject如何提取項目的不同版本3.UnderstandingHistory:Commits理解歷史:交付1.Understandinghistory:commits,parents,andreachability交付,父交付與可及性2.Understandinghistory:Historydiagrams歷史沿革示圖3.Understandinghistory:Whatisabranch?理解歷史:什么是分支4.Manipulatingbra
4、nches操作分支5.Examininganoldversionwithoutcreatinganewbranch不通過創(chuàng)建新分支來調(diào)查舊版本6.Examiningbranchesfromaremoterepository調(diào)查遠程版本庫上的分支7.Namingbranches,tags,andotherreferences命名分支,標(biāo)簽,與其他引用8.Updatingarepositorywithgit-fetch用gitfetch更新版本庫9.Fetchingbranchesfromotherrepos
5、itories獲取其他版本庫的分支3.Chapter2.Exploringgithistory第二章.檢索git歷史1.Howtousebisecttofindaregression如何用平分來定位撤退2.Namingcommits交付的稱謂3.Creatingtags創(chuàng)建標(biāo)簽4.Browsingrevisions瀏覽修訂5.Generatingdiffs生成差異6.Viewingoldfileversions查看舊的文件版本7.Examples實例1.Countingthenumberofcommits
6、onabranch統(tǒng)計一個分支中的交付數(shù)目2.Checkwhethertwobranchespointatthesamehistory檢查兩分支是否在同一歷史時期3.Findfirsttaggedversionincludingagivenfix找到包含給定修正的第一個標(biāo)簽版本4.Showingcommitsuniquetoagivenbranch顯示僅屬于某個分支的交付5.Creatingachangelogandtarballforasoftwarerelease為軟件的發(fā)行制作變更日志和壓縮包6.F
7、indingcommitsreferencingafilewithgivencontent尋找一個指向包含給定內(nèi)容的文件的交付4.Chapter3.Developingwithgit第三章.用git進行研發(fā)1.Tellinggityourname告訴git你的名字2.Creatinganewrepository創(chuàng)建新的版本庫3.Howtomakeacommit如何制作一個交付4.Creatinggoodcommitmessages寫好交付信息5.Ignoringfiles忽略文件6.Howtomerge如
8、何合并7.Resolvingamerge解決合并沖突1.Gettingconflict-resolutionhelpduringamerge在合并過程中取得沖突解決幫助8.Undoingamerge撤銷合并
9、1.Fast-forwardmerges快進合并2.Fixingmistakes修復(fù)失誤1.Fixingamistakewithanewcommit修復(fù)一個新的交付中的失誤3.Fixingamistakebyrewritinghistory通過重寫歷史來修復(fù)失誤4.Checkingoutanoldve
10、rsionofafile提取一個文件的舊版本5.Temporarilysettingasideworkinprogress臨時放下手頭上的工作6.Ensuringgoodperformance確保好的性能7.Ensuringreliability確保伸縮性1.Checkingtherepositoryforcorruption檢查版本的損壞2.Recoveringlostchanges恢復(fù)丟失的變更2.Chapter4.Sha