GitHub for Developers Quiz Questions and Answers

Which command is used to show limited number of commits?

Answer :
  • git log -n

Which command defines the author email to be used for all commits by the current user?

Answer :
  • git config --global user.email

____________ git command is used for getting a high-level overview of the project history.

Answer :
  • git log --oneline

Which option to git commit will modify last commit message?

Answer :
  • -amend

____________ removes untracked files from your working directory.

Answer :
  • git clean

What is the command to download all the objects and references from a specified repository?

Answer :
  • git fetch

The Git clone command does which of the following?

Answer :
  • Both A & B

What is an alternate to 'merge' in git?

Answer :
  • Rebase

How do you save the current state of your code into the git version control?

Answer :
  • Using git commit

Which of the following isn't a Git configuration scope?

Answer :
  • User