https://github.com/notthestallion/config
https://github.com/notthestallion/config
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/notthestallion/config
- Owner: NotTheStallion
- License: apache-2.0
- Created: 2024-12-04T14:33:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-05T13:35:23.000Z (about 1 year ago)
- Last Synced: 2025-10-24T09:58:31.993Z (9 months ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Config & Hooks Setup
This repository contains configuration files and Git hooks to streamline your development workflow.
## Structure
- `git_hooks/`
- `commit-msg`: Hook to modify or validate commit messages.
- `pre-commit`: Hook to run tasks before a commit (e.g., linting, formatting).
- `.bash_aliases`: Useful shell aliases for convenience.
- `.gitconfig`: Git configuration file with custom aliases and settings.
## Installation
1. Copy the following files to your **home directory**:
- `.bash_aliases`
- `.gitconfig`
Example:
```bash
cp .bash_aliases ~/.bash_aliases
cp .gitconfig ~/.gitconfig
```
2. Leave the git_hooks/ directory as-is, or link its contents into your project’s .git/hooks/ directory.
Example:
```bash
ln -s /path/to/this/repo/git_hooks/commit-msg /your/project/.git/hooks/commit-msg
ln -s /path/to/this/repo/git_hooks/pre-commit /your/project/.git/hooks/pre-commit
```