Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Adding changes to a repository

Important

This is a very basic guide on how to work with git. For more advanced information on how git commands work, you will need to look it up on the internet on your own.

To add changes, you need to first create a branch for your changes.

The name must describe what you are aboout to do and be ^[a-z\-]$

For example, for a branch that adds a new button:

$ git checkout -b new-button

After making a change to a file, add a commit:

$ git add path/to/file
$ git commit -m 'describe your changes'

You can have more than 1 file in a commit:

$ git add path/to/file
$ git add path/to/file2
...

$ git add path/to/fileN
$ git commit -m 'describe your changes'

And push after creating a commit:

$ git push -u origin branch-name

After you think you are ready to get your work reviewed, create a Pull Request.