Practice Quiz: Undoing Things Post author:Devendra Kumar Post published: Post comments:0 Comments 6. Let's say we've made a mistake in our latest commit to a public branch. Which of the following commands is the best option for fixing our mistake? Answers git revertgit commit –amendgit resetgit checkout — <file> 7. If we want to rollback a commit on a public branch that wasn't the most recent one using the revert command, what must we do? Answers Use the git reset HEAD~2 command instead of revertUse the revert command repeatedly until we’ve reached the one we wantuse the commit ID at the end of the git revert commandUse the git commit –amend command instead 8. What does Git use cryptographic hash keys for? Answers To secure project backupsTo guarantee the consistency of our repositoryTo encrypt passwordsTo identify commits 9. What does the command git commit --amend do? Answers Start a new branchCreate a copy of the previous commitDelete the previous commitOverwrite the previous commit 10. What is the gitignore file? Answers git showgit identifygit loggit revert Previous Next Please Share This Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Devendra Kumar Project Management Apprentice at Google You Might Also Like Week 4 – Course challenge – Shuffle Q/A 1 Week 1 – Data types and structures – Shuffle Q/A 1 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.