Flash Sale: Flat 70% + Addl. 25% Off on all Courses | Use Coupon DS25 in Checkout | Offer Expires InEnroll 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