Q: You have made some changes to a local repo in VS Code. How do you commit these changes?
-
A
Under Source Control > Branches, choose the changes made and then press Ctrl+Enter (Windows) or Command+Return (Mac) to commit.
-
B
In the message box under Source Control, type a commit message and then select the checkmark.
-
C
Right-click the file with the changes, and then select Add Changes from the drop-down menu.
B
Answer:
B
Explanation:
Note that this only commits the changes to your local repo.
Related Topic:
Share Above MCQ