As you update and customize the frontend of your search experience, you will want to make sure that you are saving your changes along the way. In order to do this, you will need to commit your code. By committing code, you are essentially updating a branch to reflect any changes, fixes, additions, or deletions that you may have made.
To make a code commit:
- Click Pages in the navigation bar and click on your desired site.
- Click on the View Code Editor button.
- Hover over the master branch and click on the pencil icon () that appears.
- Navigate to the file you want to edit.
- Update the file as desired (e.g., updating a hex value for a color variable).
- Review changes by clicking View Live Preview to make sure everything is working properly.
- Click Commit in the top left of the screen below “Staged Changes”.
- You’ll be prompted to include a Commit Message.
- This is to tell yourself and other users what the commit was for. Keep it succinct but descriptive (e.g., “updated primary text color”).
- Fill in Add a Tag (Optional).
- Your tag needs to follow Git conventions so something like “2020-05-02” is valid but “starting point” is not.
- You will want to add a tag if you plan to publish these changes to production to then be live for users to see.
- You can always go back to a commit and add the tag later.
Comments
0 comments
Article is closed for comments.