Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tykeal/gitconfig
Shared gitconfig
https://github.com/tykeal/gitconfig
config configuration git
Last synced: about 1 month ago
JSON representation
Shared gitconfig
- Host: GitHub
- URL: https://github.com/tykeal/gitconfig
- Owner: tykeal
- Created: 2023-11-10T18:04:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-21T20:53:56.000Z (11 months ago)
- Last Synced: 2024-11-05T19:33:38.696Z (3 months ago)
- Topics: config, configuration, git
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the gitconfig that I use across my various systems. It's open and
public to help serve as inspiration for others. I've been using this for a few
years now and it's been working well for me. I hope it can help you too.This setup expects the following basic setup:
* Symlink dot-gitconfig into ~/.gitconfig
* You should have your repo clones in a sane top level directory
* Gerrit based repos should be have a directory called "gerrit" as part of
their path
* Clone repositories with `git get` instead of `git clone` as it will then use
the appropriate git template to setup gerrit hooks as well as pre-commit. By
default a non-gerrit repo will be configured which then sets up the
pre-commit hook.For example, my directory structure looks something like this:
```
~/.gitconfig.d # This repo
~/.gitconfig -> ~/.gitconfig.d/dot-gitconfig
~/repos/
gerrit/
project1/
project2/
major-project/
project5/
project6/
github/
project3/
project4/
major-project/
project7/
project8/
major-project/
gerrit -> ../gerrit/major-project
github -> ../github/major-project
```Now, when I want to clone a repo I go into the appropriate location and just
use `git get $REPO_URL` and it will clone the repo and setup the hooks as
needed.