Commit and Push Changes to Git
- Eliot Muir
- Aryn Wiebe
This is the commit workflow for the translator with Git:
Click the Git commit button on the Translator Toolbar. A blue dot will appear on the button to indicate there are changes to commit.
Select which files you want to commit changes for.
You can view each file and see a diff view of the changes that have been made, comparing the old and new versions. You can select to display these changes Side by Side or Changes Only by using the dropdown in the top right corner.
Leave a commit comment about the changes.
Click Commit.
Now you can push your changes to your connected remote repository if you want them backed up.
If your component is not connected to an upstream repository, you will need to assign or set up your component repository.
Before pushing your changes to the upstream repository, you may be prompted to first pull the latest commits from the repository so you can first review and resolve any conflicts before pushing your change to the repository. See Git Workflow in the Translator for more details on the full cycle.
The blue dot indicates a push is needed:
The Git console terminal will open to show the results of the commit and confirm the changes have been pushed to the remote repository.
After this workflow your changes should be saved in the remote repository.
Â