This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11774|Reply: 2

Git restores files that have been committed for deletion

[Copy link]
Posted on 9/13/2021 10:14:50 AM | | | |
Some colleagues reported that the automated build failed, and they found that some POM files were mistakenly deleted by other colleagues. Looking at the history through git, you can see the deleted files, as shown in the figure below:



How to recover files that have been submitted for deletion?

List all the submitted information and deleted files, and view the deleted file history, with the following command:




To recover deleted files, the command is as follows:



(End)





Previous:.NET Core backs up data to Amazon S3 Glacier storage
Next:Windows does not have a browser to obtain an external (egress) IP address
Posted on 9/14/2021 10:08:00 AM |
Is there such a god?
Posted on 9/19/2021 7:33:41 PM |
Now with tfs. Check this out too
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com