摘要:
git pull is indeed equivalent to the two steps: git fetchgit merge origin/master 阅读全文
posted @ 2012-04-26 14:07
.net's
阅读(350)
评论(0)
推荐(0)
摘要:
GOALS Learn how to revert changes that have been committed to a local repository. Undoing Commits01 Sometimes you realized that a change that you have already committed was not correct and you ... 阅读全文
posted @ 2012-04-26 11:31
.net's
阅读(562)
评论(0)
推荐(0)
摘要:
GOALS Learn how to revert changes that have been staged Change the file and stage the change01 Modify the hello.rb file to have a bad comment FILE: hello.rb # This is an unwanted but staged c... 阅读全文
posted @ 2012-04-26 11:24
.net's
阅读(527)
评论(0)
推荐(0)
摘要:
GOALS Learn how to revert changes in the working directory Checkout Master01 Make sure you are on the lastest commit in master before proceeding. EXECUTE: git checkout masterChange hello.rb02... 阅读全文
posted @ 2012-04-26 11:21
.net's
阅读(474)
评论(0)
推荐(0)
摘要:
git status, git add, git commit, and git checkoutare such common commands that it is useful to have abbreviations for them.Add the following to the .gitconfig file in your $HOME directory.FILE: .gitconfig[alias] co = checkout ci = commit st = status br = branch hist = log --pretty=format:\"%h % 阅读全文
posted @ 2012-04-26 11:11
.net's
阅读(330)
评论(0)
推荐(0)
摘要:
The Ultimate Log Format Over time, I’ve decided that I like the following log format for most of my work. EXECUTE: git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=shortIt looks like th... 阅读全文
posted @ 2012-04-26 11:09
.net's
阅读(538)
评论(0)
推荐(0)