Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abh80/git-hooks

My custom git hooks which I use across my repositories
https://github.com/abh80/git-hooks

git-automation git-hooks

Last synced: 2 days ago
JSON representation

My custom git hooks which I use across my repositories

Awesome Lists containing this project

README

        

# git-hooks
My custom git hooks which I use across my repository

> Note: requires [Powershell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3) to be installed in your system

# Installation
Add it using [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules).

```bash
$ git submodule add https://github.com/abh80/git-hooks.git
```

# Usage
Execute the script using their relative paths `git-hooks/.ps1`

# Available scripts

- **Commit Message**

Automatically formats your git commit message and commits them easily, also commits your each file separately.

1. Stage the changes using `git add .` or individually `git add <some-file>`
2. Execute the script `./git-hooks/commmit-message.ps1`
3. Everything required will be prompted next!