Code Monkey home page Code Monkey logo

git-hooks's People

Contributors

rgondev avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-hooks's Issues

Dont commit if code contains debuggers

Situation:
Debugger tools are useful when you are developing but you dont need that code in your repository. Show files and position of this debuggers when you want to commit them.
This issue can be applied to multiple languages

Checkout new branch from something different than master

Situation:
When you are creating a new branch, show a message if base branch is different than master branch.

In some situations you can create new branches with different origin (for example if you create a branch based on your current feature branch), so this message should be a warning.

Suggested by @struebano

Dont move schema if no migrations in commit

Situation:
When you want to commit files, if schema.rb is included into staged files, there must be a migration file change the schema of the database. Dont allow to commit until schema.rb is reset or removed.

Dont merge staging into your feature branch

Situation:
You have your testing features in a staging branch. This branch shouldnt be merge into your feature branches, because it has functionality that isnt deployed (so this commits arent contained in master)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.