撤消Git Clean [英] Undoing Git Clean

查看:319
本文介绍了撤消Git Clean的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我不小心使用 git clean -f 从工作树中删除了一些新的未跟踪文件。有没有办法取消清理或重新添加那些未跟踪的文件?

解决方案

如果您的文件被Git清理,然后他没有被Git int追踪到他的第一名。不幸的是,您只剩下其他方法来恢复备份文件。



这不是Git可以帮助您的。


So I accidentally removed some new, untracked files from the working tree using git clean -f. Is there a way to undo the clean or re-add those untracked files?

解决方案

If your files were cleaned by Git, then they weren't tracked by Git int he first place. Unfortunately you're left with whatever other method you use to restore files from a backup.

This is not something that Git can help you with.

这篇关于撤消Git Clean的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆