2. Synchronize code with the remote repository
Learn how to synchronize your code changes with a remote repository by using Git commands.
- In your favorite editor, open this file:
<your local repository>/views/index.html - Change the text on line 15 to anything you want, and save the changes.
- Update the index with the content in the working tree:
git add <files(s)>
The index is a snapshot of the content that is staged for the next commit. - After all the changes are done, use
git commit
to commit the index to the repository. The commit action requires a log message describing the changes to be recorded. Specify the log message by using-m
argument:
# git commit –m "<Log Message>"
- Synchronize the local repository with the remote one:
# git push
The changes are now visible in the remote repository.
- Open the GitLab project to verify.
- If you quickly go back to the toolchain Overview and then click the Delivery Pipeline, you might be able to see the pipeline in action.