#NoPayJan Offer - Access all CloudxLab Courses for free between 1st to 31st JanEnroll Now >>
Commit is used to snapshot the changes made to the files in a git repository. First, the changed files are added to the staging area using
git add command
And then we commit them to a branch using
git commit command. Please note that we provide a message to
git commit using
-m flag so that other developers can understand the gist of commit.
Check the branch you are currently using the
git branch command. You should be on the master branch. Commit your changes to the master branch using the
git commit command.
helloworld.pyto the staging area using the
git add helloworld.pycommand.
Commit the changes made using
git commit with the message "First commit". Use the below command
git commit -m "First commit"
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here