Sourcetree - 撤消删除的文件
Sourcetree - undo removed file
我在 Sourcetree 中的一个文件上使用 "remove" 而不是 "discard"。这从我的本地文件夹中删除了文件。因此,我从 GitLab 的存储库中获得了已删除文件的另一个副本。 Sourcetree 仍将文件显示为已删除并带有减号图标。我如何从 sourcetree 中撤消/删除它?
在待定文件视图中右键单击更改的文件,然后select:"Discard"。
这是 git 相当于:
git reset HEAD footer.php
git checkout SERDES_TB2.vhd
有关详细信息,请参阅 http://gitimmersion.com/lab_15.html。
我在 Sourcetree 中的一个文件上使用 "remove" 而不是 "discard"。这从我的本地文件夹中删除了文件。因此,我从 GitLab 的存储库中获得了已删除文件的另一个副本。 Sourcetree 仍将文件显示为已删除并带有减号图标。我如何从 sourcetree 中撤消/删除它?
在待定文件视图中右键单击更改的文件,然后select:"Discard"。
这是 git 相当于:
git reset HEAD footer.php
git checkout SERDES_TB2.vhd
有关详细信息,请参阅 http://gitimmersion.com/lab_15.html。