conflict-detector

1.4.7 • Public • Published

Git Conflict Detector

A postcommit hook to warn you about merge conflicts introduced with other branches of the repo.

Installation

npm i conflict-detector husky --save-dev

Add a line in your package.json:

  "scripts": {
    ...
    "postcommit": "conflict-detector",
    ...
  },

Known issues with the script

If you realize a partial commit, the script will use the stash, therefore add an item on top of it.

Features needed

Create a config file containing branches to protect instead of running on all of the branches.

Package Sidebar

Install

npm i conflict-detector

Weekly Downloads

1

Version

1.4.7

License

ISC

Unpacked Size

2.58 kB

Total Files

3

Last publish

Collaborators

  • lechinoix