Committing the changes
You moved the credentials out of the code repository and verified that the robot still works. You visually reviewed your changes and saw that they look fine. You feel confident about the changes. They will improve the robot! It is time to commit.
Preparing for commit
In the root of your robot project, run git add .
to add all the created and modified files:
See git add command documentation for more information.
Running git status
shows that the changes are now ready to be committed:
If you still want to review your changes before committing, you can run
git diff --staged
.
Commit!
Provide a message describing the changes and commit by running git commit -m 'Move credentials to vault'
:
Visual Git clients provide you a user interface for writing the message and doing the commit.
Running git status
now shows nothing new to commit (since you just committed):
Viewing the log
You can view a log of the changes by running git log
:
What we learned
- You can prepare files and directories for committing using
git add .
. - You provide a message and commit the changes using
git commit -m 'Message describing the changes'
. - You can view a log of the changes using
git log
. - Visual Git clients provide a user interface for all the operations.