> For the complete documentation index, see [llms.txt](https://docs.boston.gov/digital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boston.gov/digital/standards-and-best-practices/git-and-github.md).

# Git / GitHub

Practices and workflows for using Git and GitHub on the Digital team.

## General

* Changes are made on feature branches and merged via Pull Request, regardless of whether those PRs are reviewed.
* Preferred naming convention for a feature branch is `service-name/feature`.
* **Never** commit directly to `develop` or `production` branches.
* Rebase to a single commit before making a PR.
* Commit messages should be written in present tense.

## Pull Requests

{% hint style="info" %}
See our [code review](https://boston.gitbook.io/digital-documentation/standards-and-best-practices/code-reviews) guidelines.
{% endhint %}

* PRs should be merged by the assignee, who is typically the person who made the PR.
* Assignee should delete the branch once it has been merged into `develop`.
* Code reviews are required if more than one engineer has interest in the repo, regardless of the relative experience between the engineers.
* Code reviews take priority over feature work, and must be responded to quickly.
* Reviewer is responsible for approving changes detected by Percy.

## Git Branches

For Drupal see:

{% content-ref url="/pages/-McMta4ZYUI8lSkv-vJV" %}
[Git Best Practices - Drupal](/digital/guides/drupal-8/custom-development-and-configuration/site-development-notes/git-best-practices-drupal.md)
{% endcontent-ref %}
