S

Satya • 3.38K Points
Extraordinary

Q. Which command permanently removes a file from both Git history and the working directory?

  • (A) git remove
  • (B) git clean -df
  • (C) git rm filename
  • (D) git reset filename
  • Correct Answer - Option(C)
  • Views: 40
  • Filed under category GitHub
  • Hashtags:

Explanation by: Satya

'git rm filename' removes the file from the working directory and stages the removal for commit.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.