QuestionQ5

Operations

A file named myfunc.py has been edited. Place the steps in the correct sequence to commit this file to the local Git repository and then confirm its status. Not every option is used.

Drag & Drop
git add .
git add
git status
git commit -m "new function"
git commit -msg "new function"
step 1
step 2
step 3
Explanation

git add . stages the changed file(s), git commit -m "new function" records the staged changes in the local repository, and git status reports the resulting working-tree and staging status. The -m option is the correct commit-message flag.

Community Discussion

No comments yet. Be the first to start the discussion!