简体   繁体   English

如何删除TortoiseGit中的URL历史记录?

[英]How can I delete the URL history in TortoiseGit?

When you open TortoiseGit for cloning a repository, under Clone existing repository, it fills the URL drop menu with repositories that were already cloned before. 当您打开TortoiseGit以克隆存储库时,在克隆现有存储库下,它会使用之前已克隆的存储库填充URL下拉菜单。 However, I want to clean this history. 但是,我想清理这段历史。 How can I achieve that? 我怎样才能做到这一点? The reason I am doing this, is because I was using a company's laptop, and now I want to remove everything on it. 我这样做的原因是因为我正在使用公司的笔记本电脑,现在我想删除它上面的所有内容。 I have already successfully removed my git credentials from there. 我已经从那里成功删除了我的git凭据。

The TortoiseGit documentation explains how to do this. TortoiseGit文档解释了如何执行此操作。 It cannot be linked to directly, so here's an excerpt. 它不能直接链接,所以这里是一个摘录。 It's most easily found by searching inside that page for 2.87 . 通过在该页面内搜索2.87最容易找到它。

Essentially you need to go to the Settings dialog and then select Saved Data in the tree on the left. 基本上,您需要转到“ 设置”对话框 ,然后在左侧的树中选择“ 保存的数据 ”。 You can clear all kinds of things there. 你可以清除各种各样的东西。

Figure 2.87. 图2.87。 The Settings Dialog, Saved Data Page The Settings Dialog, Saved Data Page 设置对话框,已保存数据页面设置对话框,已保存数据页面

在此输入图像描述

For your convenience, TortoiseGit saves many of the settings you use, and remembers where you have been lately. 为了您的方便,TortoiseGit保存了您使用的许多设置,并记住您最近的位置。 If you want to clear out that cache of data, you can do it here. 如果要清除数据缓存,可以在此处执行。

URL history 网址历史记录

Whenever you checkout a working tree, merge changes or use the repository browser, TortoiseGit keeps a record of recently used URLs and offers them in a combo box. 每当您签出工作树,合并更改或使用存储库浏览器时,TortoiseGit会记录最近使用的URL并在组合框中提供它们。 Sometimes that list gets cluttered with outdated URLs so it is useful to flush it out periodically. 有时,该列表会被过时的URL弄得乱七八糟,因此定期将其清除是很有用的。

If you want to remove a single item from one of the combo boxes you can do that in-place. 如果要从其中一个组合框中删除单个项目,则可以就地执行此操作。 Just click on the arrow to drop the combo box down, move the mouse over the item you want to remove and type Shift+Del . 只需单击箭头即可向下放置组合框,将鼠标移到要删除的项目上,然后键入Shift + Del

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

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