Phone

+919997782184

Email

support@roboticswithpython.com

Geeks of Coding

Join us on Telegram

Viewing 0 reply threads
  • Author
    Posts
    • #1112
      Abhishek TyagiAbhishek Tyagi
      Keymaster

      Q 1) 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?

      Answer-
      git revert

      Q 2) 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?

      Answer-
      Use commit ID at the end of git revert

      Q 3) What does Git use cryptographic hash keys for?

      Answer-
      To guarantee consistency of our repository

      Q 4) What does the command git commit –amend do?

      Answer-
      Overwrite the previous commit

      Q 5) How can we easily view the log message and diff output the last commit if we don’t know the commit ID?

      Answer-
      git show

Viewing 0 reply threads
  • You must be logged in to reply to this topic.