A commit is a snapshot of the changes you’ve made to a file in a branch. While you work in Sketch, you'll see the Abstract plugin at the bottom remind you to Preview & Commit. If you don't see that option, use File > Save or CMD+S in Sketch to trigger the prompt.
A commit provides context to the changes in your work; it includes an overview of visual and non-visual changes and provides a space to document the changes for your team.
⚠️Saving in Sketch does not provide the same functions as a commit. If you save in Sketch instead of committing your work, you are at high risk of data loss. We highly recommend you commit at least once daily.
Commit every time you make a change to your branch: a new exploration, when you finish a chunk of work, or when you change direction.
To commit changes:
- Click the Preview & Commit button from Abstract plugin at the bottom of Sketch.
- Abstract will open the Commit Changes window.
- Summarize your changes for your team.
- Click the COMMIT CHANGES button in the bottom right of the window.
If you happened to close Sketch without committing first, Abstract will prompt you to commit along the bottom of the Mac app. Using the ⌵ option to the right of Preview & Commit, select Discard Changes to trash your changes. ⚠️ Discard changes with caution: they aren't recoverable.
Afterward, you can review the commit timeline on each branch and in Master after they’ve been merged. Click the Commits tab to review the commit history on a branch or in Master.
Now that you've committed work, you're ready to merge to master.