Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 GitAhead 中,我想打开/下载/保存来自特定提交的文件。在 sourcetree 中,选择文件会为您提供两个按钮:“之前打开”和“之后打开”。我正在寻找类似的东西。
有没有办法打开特定文件的特定版本,而不必检查整个提交?
这并不像应有的那么明显。导航到更改文件的提交。按住文件标题小部件中的铅笔图标。您应该会看到一个菜单弹出,其中包含编辑新旧修订的选项。旧版本是更改前的文件,新版本是更改后的文件。不幸的是,由于没有“另存为”,您将不得不求助于复制/粘贴来保存。
另一个选项是切换到树视图。这显示了给定修订版中存在的任意文件。如果要在更改之前获取文件的内容,则必须切换到父提交。