culTest

    One of the 100 questions in this topic

    How much do you know about Git and Version Control?

    Which command removes a file from both the index and the working directory?

    Answers

    git rm <file_name>Correct
    git delete <file_name>
    git remove <file_name>
    git drop <file_name>

    git rm <file_name> removes a file from both the index and the working directory.