I'm relatively new to RoR, and am trying to view an older git version through my browser. I've used git show and the advice from http://bit.ly/fjIjva to view details about the older version, however, I want to be able to go to http://localhost:3000/ and actually view what the older version looked like. Currently when I connect to the rails server, I can only view the current git version.
我对RoR比较陌生,并且试图通过我的浏览器查看一个更老的git版本。我使用了git show和来自http://bit的建议。ly/fjIjva可以查看旧版本的详细信息,但是,我希望能够访问http://localhost:3000/并实际查看旧版本的外观。目前,当我连接到rails服务器时,我只能查看当前的git版本。
Thanks in advance for your help!
谢谢你的帮助!
1 个解决方案
#1
1
You could check out that file, but what you probably want to do is check out a previous revision. The command for this is git checkout
. The manpage will tell you more about how to specify a revision and so on.
您可以查看该文件,但是您可能想要做的是检查之前的版本。这个命令是git签出。手册将告诉您更多关于如何指定修订的信息,等等。
#1
1
You could check out that file, but what you probably want to do is check out a previous revision. The command for this is git checkout
. The manpage will tell you more about how to specify a revision and so on.
您可以查看该文件,但是您可能想要做的是检查之前的版本。这个命令是git签出。手册将告诉您更多关于如何指定修订的信息,等等。