On Wed, 28 Mar 2012 06:02:35 -0700 (PDT) dspfun <dsp...@hotmail.com> wrote:
> I have made a clone of a git repo. Each file has a number of > modifications to it compared to when the files were put into git. > > I would like to "see" all the original/first versions of each file, > how do I do this in git? A followup: if you're really want to look at the "original versions" of *all* files comprising the current state of a repository, then you just want to do `git checkout`. This might seem like posing a problem, but really it isn't: 1) If you do not have uncommitted changes, just go ahead and do `git checkout <original_rev>`--you will be able to to do `git checkout <the_branch_I_was_on>` any time later. 2) If you do have uncommitted changes then just commit them-- later you'll be able to check out that branch back and then back it out by one commit, keeping the changes in the work tree by doing `git reset HEAD~1`. Or run `git stash` to just stash away your uncommitted changes to a special place. Then after checking out your branch back you'll run `git stash pop` and bring your uncommitted changes back. TL;DR: `git show <rev>:<path>` is a tool for quick reviews of past revisions while `git checkout <rev>` is a tool for comprehensive reviews of them. The latter might require some extra work to deal with uncommitted changes if there are any. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.