Login using Social Account
     Continue with GoogleLogin using your credentials
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.
~/devops
directoyhelloworld.py
to the staging area using the git add helloworld.py
command. Commit the changes made using git commit
with the message "First commit". Use the below command
git commit -m "First commit"
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...