简体   繁体   English

TortoiseGit:返回以前的版本

[英]TortoiseGit: go back to previous version

I have installed TortoiseGit. 我已经安装了TortoiseGit。 I've commit an initial version of my files. 我已经提交了文件的初始版本。 But when I do a change and commit again: 但是,当我进行更改并再次提交时:

  1. Right click 右键点击
  2. Click Git commit -> "master" 点击Git commit -> "master"

in the log I only see my actual version and the initial commit. 在日志中,我仅看到我的实际版本和初始提交。

How can I see all versions of my files? 如何查看文件的所有版本?

mnagel points out the option "amend" being incorrectly selected (meaning it won't create a new commit, but modify the existing one) mnagel指出错误地选择了“修改”选项(这意味着它不会创建新的提交,而是会修改现有的提交)

承诺

Note that only recently (end 2012) did the commit amend of TortoiseGit allow to modify the comment only without modifying any file: issue 1472 . 请注意,直到最近(2012年底),TortoiseGit的提交修订才允许仅修改注释而不修改任何文件: issue 1472
But in the OP's case, files are selected by default, which means, with the "amend" checkbox, that will add the modification to the current commit . 但是在OP的情况下,默认情况下会选择文件,这意味着使用“修改”复选框,会将修改添加到当前提交中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM