GithubHelp home page GithubHelp logo

git-hooks's Introduction

git-hooks

Collection of scripts I like to use in my git hooks.

I found myself copy pasting these scripts around inside different git hooks so I figured I'd put go DRY and put them in a single location.

Usage

  1. Clone this repo
  2. Inside any git hook run bash <path_to_script>

Available scripts

merge_develop.sh

This script checks if you're on a feature/* branch, if you are it merges the remote develop in the current branch. makes sure you're nearly almost using the newest code. I like putting this in post-checkout to make sure I always have the latest changes from develop.

npm_install.sh

Runs npm install, useful whenever you'r working on a front-end project. I like to use it in post-merge so I always have the latest packages from remote installed.

pull.sh

Pulls the latest changes for this branch from the repository. I like to put this in post-checkout, makes sure I always have the latest changes from remote in local branches.

artisan_migrate.sh

Runs php artisan migrate, I like to put this in post_merge to keep my database up-to-date.

composer_install.sh

Runs composer install, I like to put this in post_merge to keep my dependencies up-to-date.

git-hooks's People

Watchers

James Cloos avatar

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.