On Sat, May 5, 2012 at 9:30 PM, Rivsen <
rivse...@gmail.com> wrote:
> Simply, you can see what git index in your first system, run "git log" and
> remember the first row of commit( need only remember the first six or eight
> like this 'commit 42198ad13560c46070223e095f787dff5bd8a918' ).
>
> Then checkout this commit in your second system, run 'git checkout 42198ad1'
> and you will get the same code status between two system.
>
> ps. 42198ad1 is a example, not real
On system 1 (the one with 1.4):
# git log
commit 6fbf282ac2b467bd71f807cad45e12a86aa371bd
Author: claudep <claudep@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Date: Fri Mar 23 19:44:52 2012 +0000
On system 2 (which has 1.5 installed):
# git checkout 6fbf282
error: pathspec '6fbf282' did not match any file(s) known to git
Also tried it with the entire commit string:
# git checkout 6fbf282ac2b467bd71f807cad45e12a86aa371bd
fatal: reference is not a tree: 6fbf282ac2b467bd71f807cad45e12a86aa371bd