Code Monkey home page Code Monkey logo

git-tools's Introduction

Git Tools

This repository houses random git tools that we have whip'd up over time.

Hooks

Our Git Hooks all live in the hooks directory. They are organized by Git life cycle name that they are intended to work for, ex. hooks/prepare-commit-msg holds all the Git Hooks that are intended to work in the prepare-commit-msg life cycle stage.

The names of the files try to communicate what the hooks do at a high level.

Installing Hooks

There are two general use cases for installing.

Personal Use

In this case simply need to copy the hook file into your projects .git/hooks/<stage name> with the life cycle stage name. For example if you wanted to install the require-branch-name-have-jira-issue hook you would copy that file into .git/hooks/prepare-commit-msg.

Team Use

In this case we recommend you create a hooks directory at the root of your project and copy the hook script into that directory with the appropriate life cycle name. You can then stage and commit this hooks directory so that it stays in lock step with the code base. This is great because as the hook changes as the process changes over time it is automatically updated with a developer pulls.

You also need to have each of the team members run the following command after they do a fresh clone of the repository.

git config core.hooksPath hooks

The above tells Git to look inside the hooks directory within the project for the hooks rather than the default .git/hooks directory.

We have also provided a script setup_and_update_hooks that is intended to be copied and committed into the root of your project's Git repo, and then executed to setup the Git hooks and the repositories Git configuration. This is simply a nice to have to help streamline things a tiny bit more.

License

These Git tools are Copyright © 2017 UpTech Works, LLC. They are free software, and may be redistributed under the terms specified in the LICENSE file.

About uptech

These Git tools are maintained UpTech Works, LLC, a software design & development agency & consultancy.

We love open source software. See our other projects or hire us to design, develop, and grow your product.

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.