git-hooks's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.