摘要:
1.Now take a second to look at that diagram and realize what it did. It essentially undid the last commit you made. When you rungit commit, Git will create a new commit and move the branch thatHEADpoints to up to it. When youresetback toHEAD~(the parent of HEAD), you are moving the branch back to wh 阅读全文
posted @ 2012-04-01 21:19
.net's
阅读(331)
评论(0)
推荐(0)
摘要:
Renaming and Removing filesTo rename a file in the indexandthe working directory:$ git mv README readme$ git ls-filesreadme$ git status# On branch master# Changes to be committed:# (use "git reset HEAD ..." to unstage)## renamed: README -> readme#And to remove a file from the working di 阅读全文
posted @ 2012-04-01 16:51
.net's
阅读(409)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2012-04-01 10:00
.net's
阅读(266)
评论(0)
推荐(0)