Home >Software Tutorial >Computer Software >TortoiseGit restores the specific method of ignoring file usage
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.
A prompt box will pop up, select remove.
At this time, the ignored file will be marked with a red cross.
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.
The file becomes a file with a red exclamation mark, indicating that the file has been modified
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.
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!