﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-aa19870406-随笔分类-工作日志</title><link>http://www.cppblog.com/aa19870406/category/17263.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 07 Jul 2011 00:22:47 GMT</lastBuildDate><pubDate>Thu, 07 Jul 2011 00:22:47 GMT</pubDate><ttl>60</ttl><item><title>git学习</title><link>http://www.cppblog.com/aa19870406/archive/2011/07/06/150282.html</link><dc:creator>MrRightLeft</dc:creator><author>MrRightLeft</author><pubDate>Wed, 06 Jul 2011 03:21:00 GMT</pubDate><guid>http://www.cppblog.com/aa19870406/archive/2011/07/06/150282.html</guid><wfw:comment>http://www.cppblog.com/aa19870406/comments/150282.html</wfw:comment><comments>http://www.cppblog.com/aa19870406/archive/2011/07/06/150282.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/aa19870406/comments/commentRss/150282.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/aa19870406/services/trackbacks/150282.html</trackback:ping><description><![CDATA[<div style="font-family: verdana, 'courier new'; font-size: 14px; line-height: 150%; background-color: #b4d6ba !important; color: #000000 !important; background-image: none !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; ">1.创建版本库<br style="background-color: #b4d6ba !important; color: #000000 !important; background-image: none !important; " />git init-db,使用该命令会在当前目录下创建版本库。生成一个.git的子目录，该子目录中会有三个需要重点注意的东东，一个HEAD文件，一个objects子目录，一个refs子目录<br style="background-color: #b4d6ba !important; color: #000000 !important; background-image: none !important; " />2.git add,使用该命令将相应文件加入到版本库文件索引中，或者使用git update-index<br style="background-color: #b4d6ba !important; color: #000000 !important; background-image: none !important; " />3.git status,查看版本库状态<br style="background-color: #b4d6ba !important; color: #000000 !important; background-image: none !important; " />4.git commit -m,提交文件到版本库中<br style="background-color: #b4d6ba !important; color: #000000 !important; background-image: none !important; " />5.git diff,查看当前的工作目录和版本库中的差别<br />6.git branch创建版本分支<br />7.git checkout ,转到相应的版本分支<br />8.git branch -D,删除版本分支</div><img src ="http://www.cppblog.com/aa19870406/aggbug/150282.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/aa19870406/" target="_blank">MrRightLeft</a> 2011-07-06 11:21 <a href="http://www.cppblog.com/aa19870406/archive/2011/07/06/150282.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>