2019-08-14 09:17:54 -04:00
# Contributing Guide
2019-08-14 09:45:18 -04:00
Contributing to Hosts is easy. This document shows you how to get started
2019-08-14 09:17:54 -04:00
## General
2020-02-22 21:37:58 +02:00
2019-08-14 09:17:54 -04:00
- The [Codebase Structure ](https://github.com/StevenBlack/hosts/blob/master/codebase_structure.md ) has
detailed information about how the various folders and files in this project are structured.
## Submitting changes
- Fork the repo
- < https: // github . com / StevenBlack / hosts / fork >
- Check out a new branch based and name it to what you intend to do:
- Example:
2020-02-22 21:37:58 +02:00
```sh
git checkout -b BRANCH_NAME
```
2019-08-14 09:17:54 -04:00
If you get an error, you may need to fetch first, by using
2020-02-22 21:37:58 +02:00
```sh
git remote update & & git fetch
```
2019-08-14 09:17:54 -04:00
- Use one branch per fix / feature
- Commit your changes
- Please provide a git message that explains what you've done
- Please make sure your commits follow the [conventions ](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53#file-commit-message-guidelines-md )
- Commit to the forked repository
- Example:
2020-02-22 21:37:58 +02:00
```sh
git commit -am 'Add some fooBar'
```
2019-08-14 09:17:54 -04:00
- Push to the branch
- Example:
2020-02-22 21:37:58 +02:00
```sh
git push origin BRANCH_NAME
```
2019-08-14 09:17:54 -04:00
- Make a pull request
2020-02-22 21:37:58 +02:00
- Make sure you send the PR to the `BRANCH_NAME` branch
2019-08-14 09:17:54 -04:00
If you follow these instructions, your Pull Request will land safely!