nx/docs/guides/git-branching-strategies.md
ben d92c94d097 docs(nx): add nx documentation files
This adds some documentation files splitted in different categories.
2019-01-21 10:44:55 -05:00

22 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# A recommended Git Strategy
We recommend the following:
- Always use Pull Requests when merging code. A PR has two purposes:
- To initiate a conversation and to get feedback on the implementation
- To initiate a build and to run tests and lint checks to ensure that
we dont break the build
- Avoid long-running branches and dont merge branches locally
- Enforce a git merging strategy that ensures that feature branches are
up-to-date before merging. This ensures that these branches are tested
with the latest code before the merge.
The website [trunkbaseddevelopment.com](trunkbaseddevelopment.com) contains a
lot of very helpful information on trunk-based development and is a great resource.
The following sections are the most pertinent:
- [Feature flags](https://trunkbaseddevelopment.com/feature-flags/)
- [Strategy for migrating code](https://trunkbaseddevelopment.com/branch-by-abstraction/)
- [Feature branches](https://trunkbaseddevelopment.com/short-lived-feature-branches/#breaking-the-contract)