资源描述:
《[Git.Pocket.Guide(2013.6)].Richard.E.Silverman.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、GitPocketGuideRichardE.SilvermanGitPocketGuidebyRichardE.SilvermanCopyright©2013RichardE.Silverman.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebasto‐pol,CA95472.O’Reillybooksmaybepurchasedforeducational,busi
2、ness,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesde‐partment:800-998-9938orcorporate@oreilly.com.Editors:MikeLoukidesandMeghanBlanchetteProductionEditor:MelanieYar
3、broughCopyeditor:KielVanHornProofreader:LinleyDolbyIndexer:JudithMcConvilleCoverDesigner:RandyComerInteriorDesigner:DavidFutatoIllustrator:RebeccaDemarestJune2013:FirstEditionRevisionHistoryfortheFirstEdition:2013-06-24:Firstrelease2013-07-10:SecondreleaseSeehttp://oreilly.c
4、om/catalog/errata.csp?isbn=9781449325862forreleasede‐tails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.GitPocketGuide,theimageofalong-earedbat,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignations
5、usedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,t
6、hepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-1-449-32586-2[M]TableofContentsPrefaceixChapter1:UnderstandingGit1Overview2TheObjectStore6ObjectIDsandSHA-111WhereObjectsLive15TheCommitGrap
7、h16Refs17Branches19TheIndex22Merging24PushandPull26Chapter2:GettingStarted33BasicConfiguration33CreatingaNew,EmptyRepository39ImportinganExistingProject41IgnoringFiles42Chapter3:MakingCommits47iiiChangingtheIndex47MakingaCommit52Chapter4:UndoingandEditingCommits57Changingthe
8、LastCommit58DiscardingtheLastCommit61UndoingaCommit62EditingaSeriesofCommit