A Git client built right into Sketch. Generate pretty diffs so that everybody knows what are the changes!
Compatible with Sketch 3.4.
- Git
- Sketchtool installed in
/usr/local/bin/sketchtool
(default location)
- Download this repo as a zip
- Double-click on Git.sketchplugin
Once:
- Init the git repo
- Add all the sketch files you are working on the repo
Then:
- Create a new branch when you start working on a new feature
- Work normally on your design
- Save the file
- Commit the changes with a meaningful message describing them. The plugin will extract the artboards in your file in order to show the differences easily.
- Push your changes to the remote.
- Create a pull request from your branch to the master branch.
- Voila. Your co-workers can review the changes, comment on them and approve them. Once approved, merge the pull request.
For a more in-depth explanation of a nice git flow, check out this article.
Action | Shortcut |
---|---|
Commit your changes | ctrl + alt + cmd + c |
Push your changes | ctrl + alt + cmd + p |
Create a new branch | ctrl + alt + cmd + n |
Switch to an existing branch | ctrl + alt + cmd + o |
Client | Command |
---|---|
Commit | git commit -m 'message' -a |
Push | git push -q |
New Branch | git checkout -qb branchName |
Switch Branch | git checkout -q branchName |
Add file to git | git add currentFile |
Init Git repo | git init && git add currentFile |
MIT