Home  >  Article  >  Software Tutorial  >  TortoiseGit restores the specific method of ignoring file usage

TortoiseGit restores the specific method of ignoring file usage

WBOY
WBOYOriginal
2024-06-11 22:02:12434browse

The file was accidentally ignored by git, how to restore it? PHP editor Yuzai brings you the specific method of restoring ignored files in TortoiseGit to help you solve this problem.

Right-click on the file, TortoiseGit-Delete (keep a copy, D), and delete the ignored file in the index file.

TortoiseGit restores the specific method of ignoring file usage

A prompt box will pop up, select remove.

TortoiseGit restores the specific method of ignoring file usage

At this time, the ignored file will be marked with a red cross.

TortoiseGit restores the specific method of ignoring file usage

At this time the file is deleted from the index file and is no longer subject to version control. Then right-click on the file and select add to add the file to the version-controlled management column.

TortoiseGit restores the specific method of ignoring file usage

The file becomes a file with a red exclamation mark, indicating that the file has been modified

TortoiseGit restores the specific method of ignoring file usage

Right-click in the blank space and select Restore to restore the file to its original state After the status is reached, pull it again and it can be updated normally.

TortoiseGit restores the specific method of ignoring file usage

The above is the detailed content of TortoiseGit restores the specific method of ignoring file usage. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn