You manage source control by using GitHub. You have a file named Data.txt that contains sensitive data. A user pushes Data.txt to a repository. You need to purge the file from the repository. Which two commands can you use? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.

QuestionsCategory: AZ-400You manage source control by using GitHub. You have a file named Data.txt that contains sensitive data. A user pushes Data.txt to a repository. You need to purge the file from the repository. Which two commands can you use? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.
Admin Staff asked 4 months ago
You manage source control by using GitHub.
You have a file named Data.txt that contains sensitive data. A user pushes Data.txt to a repository.
You need to purge the file from the repository.
Which two commands can you use? Each correct answer presents a complete solution.
NOTE: Each correct solution is worth one point.

A. git checkoutgit reset -hard -pathspec data.txt

B. git checkoutgit clean -d data.txt --force

C. bfg --delete-files data.txtgit push --force

D. git rm data.txtgit push --force

E. git filter-repo --invert-paths --path data.txtgit push origin --force --all

F. git revert -edit data.txtgit push -force




 

Suggested Answer: D



This question is in AZ-400 Exam
For getting Microsoft DevOps Engineer Expert Certificate


Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Microsoft. 
The website does not contain actual questions and answers from Microsoft's Certification Exams.
Trademarks, certification & product names are used for reference only and belong to Microsoft.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.