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.
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.
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.
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.
git status now shows nothing new to commit (since you just committed):
You can view a log of the changes by running
- 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
- Visual Git clients provide a user interface for all the operations.