brsh

Git ​

This page helps you use git with your design file and see what changed in your design.

Brsh shows git in the Source Control view. In the Figma layout, click Source in the left bar.

How to turn on Source Control for your file ​

  1. Open a .brsh file that is inside a git folder.
  2. Brsh asks if it may use that folder. Click Use it.

If you click No, Brsh remembers and does not ask again. You can still connect a folder by hand in Source Control.

Source Control then shows the branch you are on, new commits from others and your last commit. A link opens the project on GitHub.

How to commit your changes ​

  1. Open Source Control.
  2. Find your file in the list of changed files.
  3. Point at the file. Click the + button (Stage). This picks the file for the next commit.
  4. Type a message in the message box. Say what you changed.
  5. Press ⌘Enter, or choose a commit action in the More menu.

If you stage no file, ⌘Enter commits all changed files. The button then reads Commit all.

Click the Unstage button to take a file out again. The More menu also has Stage all changes and Unstage all.

How to share your changes ​

  • Choose Push in the More menu to send your commits. A branch with no remote shows Publish branch instead.
  • Choose Pull to get the commits of others.
  • Choose Sync (pull, then push) to do both.

The view updates by itself every 3 seconds and when you return to the window. It checks for new commits every 5 minutes. Click Check for new commits to check now.

How to use branches ​

  1. Open the More menu.
  2. Choose New branch….
  3. Type a name, such as design/new-checkout.

The More menu holds Switch branch…, Rename branch…, Delete branch…, Merge branch into this one… and Rebase onto branch….

How to stash changes ​

  1. Click Stash changes. You can add a name.
  2. To take the changes back, click Restore and remove from the list (pop) next to the stash.

The More menu also has Apply latest stash and Drop latest stash.

How to make a tag ​

  1. Open the More menu.
  2. Choose New tag….
  3. Type the tag name, such as v1.0.

Choose Push tags to send tags to the remote.

How to see what changed in your design ​

  1. Make a change in a .brsh file. Save it.
  2. In Source Control, click Show design changes. Or point at the file and click its compare button. Or choose Compare design with the last commit in the More menu.
  3. Click Hide design changes to go back.

Brsh lists the layers that were added, removed or changed. The canvas shows the same, with colours:

  • Green is added.
  • Red is removed.
  • Amber is changed.

You can also choose Compare design with branch….

The compare button works only while git shows the file as changed. It compares the saved file with the commit.

How to run any other git command ​

  1. Open the More menu.
  2. Choose Run a git command….
  3. Type the command, such as git status.

Notes ​

  • Git sees one .brsh file as a set of small files. One screen is one file. A change to one screen shows as a change to one file.
  • Other More menu items: Fetch, Amend last commit…, Undo last commit, Discard all changes…, Show history and Open on GitHub.