Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing in

  Enroll Now

GitHub Project - Getting Started with Git - Make your first Commit

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.

  • Make sure you are in ~/devopsdirectoy
  • Add the file to the staging area using the git add command.
  • 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

Loading comments...