I have one GIT repository in which a number of users (Say A, B, …..X) committed the file.
I want to delete or revert all the files which are committed by the User ‘X’.
Is it possible or do I have to do that manually?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
The first part of the pipeline produces all SHA1s of commits where the username matches the regular expression (!)
X; the second part calls agit reverton those commits. If one of the commits fails to revert cleanly, though, you might want to just walk through the output ofand revert by hand.