This is the solution to Quiz 1: Problems - Version control system.

The following figure illustrates the grade distribution for this quiz.

Maximum possible points is 1.



  1. Which of the following Git commands can add all the new and modified-existing files to the staging area? choose all that apply.
    (A) git add -A
    (B) git add --A
    (C) git add -all
    (D) git add --all
    (E) git add -u
    (F) git add .
    (G) git add .; git add -u
    (H) git add .; git add --u
    (I) git add -u; git add .
    (J) git add --u; git add .

    Answer: A, D, G, F, I

  2. Which of the following Git commands both stages and commits only modified and deleted files but NOT the new files added to the repository since the last commit. Choose all that apply.
    (A) git commit
    (B) git commit -a
    (C) git commit -am

    Answer: B, C

  3. Write down the Git command that lists all Git commands for you.

    Answer:
    $ git help -a
    


Comments