mirror of
https://github.com/jimeh/common-flow.git
synced 2026-02-19 01:16:40 +00:00
Include git merge --no-ff in best practices
This commit is contained in:
committed by
GitHub
parent
c643f1472c
commit
82e481ebd9
@@ -93,6 +93,10 @@ interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119).
|
|||||||
4. It is RECOMMENDED that you always do "git pull --rebase" instead of "git
|
4. It is RECOMMENDED that you always do "git pull --rebase" instead of "git
|
||||||
pull" to avoid unnecessary merge commits. You can make this the default
|
pull" to avoid unnecessary merge commits. You can make this the default
|
||||||
behavior of "git pull" with "git config --global pull.rebase true".
|
behavior of "git pull" with "git config --global pull.rebase true".
|
||||||
|
5. It is RECOMMENDED that all branches be merged using "git merge --no-ff".
|
||||||
|
This makes sure the reference to the original branch is kept in the commits,
|
||||||
|
allows one to revert a merge by reverting a single merge commit, and creates
|
||||||
|
a merge commit to mark the integration of the branch with master.
|
||||||
4. Versioning
|
4. Versioning
|
||||||
1. The project MUST have its version hard-coded somewhere in the
|
1. The project MUST have its version hard-coded somewhere in the
|
||||||
code-base. It is RECOMMENDED that this is done in a file called "VERSION"
|
code-base. It is RECOMMENDED that this is done in a file called "VERSION"
|
||||||
|
|||||||
Reference in New Issue
Block a user