All Projects → DrVanScott → Git Clone Init

DrVanScott / Git Clone Init

Licence: mit
Automatic setup of user identity (user.email / user.name) on git clone

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Git Clone Init

Qa Checks V4
PowerShell scripts to ensure consistent and reliable build quality and configuration for your servers
Stars: ✭ 94 (-27.69%)
Mutual labels:  automation, configuration
Admiral
Admiral provides automatic configuration generation, syncing and service discovery for multicluster Istio service mesh
Stars: ✭ 323 (+148.46%)
Mutual labels:  automation, configuration
Mosint
An automated e-mail OSINT tool
Stars: ✭ 184 (+41.54%)
Mutual labels:  automation, email
Ipban
IPBan Monitors failed logins and bad behavior and bans ip addresses on Windows and Linux. Highly configurable, lean and powerful. Learn more at -->
Stars: ✭ 652 (+401.54%)
Mutual labels:  automation, configuration
Pivotal Flow
Automate your pivotal workflow
Stars: ✭ 29 (-77.69%)
Mutual labels:  automation, git-hooks
Pre Commit Terraform
pre-commit git hooks to take care of Terraform configurations
Stars: ✭ 902 (+593.85%)
Mutual labels:  automation, git-hooks
Responsive Html Email Signature
Template generator for (responsive) emails & email signatures ✨
Stars: ✭ 525 (+303.85%)
Mutual labels:  automation, email
Server Qa Checks
A bunch of QA checks to run against one or more servers to make sure they are built to a specific standard.
Stars: ✭ 72 (-44.62%)
Mutual labels:  automation, configuration
Cli
Get a programmable email address. Automate what happens when you receive emails. It's like Zapier for devs who hate emails.
Stars: ✭ 105 (-19.23%)
Mutual labels:  automation, email
Deno Puppeteer
A port of puppeteer running on Deno
Stars: ✭ 128 (-1.54%)
Mutual labels:  automation
Git Good Commit
Git hook to help you write good commit messages, with no external dependencies.
Stars: ✭ 128 (-1.54%)
Mutual labels:  git-hooks
Pytracking
Email open and click tracking library
Stars: ✭ 127 (-2.31%)
Mutual labels:  email
Bhban rpa
6개월 치 업무를 하루 만에 끝내는 업무 자동화(생능출판사, 2020)의 예제 코드입니다. 파이썬을 한 번도 배워본 적 없는 분들을 위한 예제이며, 엑셀부터 디자인, 매크로, 크롤링까지 업무 자동화와 관련된 다양한 분야 예제가 제공됩니다.
Stars: ✭ 124 (-4.62%)
Mutual labels:  automation
Instalike Instagram Bot
automate instagram activities using instagram bot - like follow/unfollow comment; python requests lib
Stars: ✭ 128 (-1.54%)
Mutual labels:  automation
Confl
Config parser for go, modeled after Nginx format, Nice lenient syntax with Comments
Stars: ✭ 127 (-2.31%)
Mutual labels:  configuration
Penta
Open source all-in-one CLI tool to semi-automate pentesting.
Stars: ✭ 130 (+0%)
Mutual labels:  automation
Bamboo
Testable, composable, and adapter based Elixir email library for devs that love piping.
Stars: ✭ 1,756 (+1250.77%)
Mutual labels:  email
Terraform Aws Spotgpu
Fully automated provisioning of AWS EC2 Spot Instances for Deep Learning workloads using Terraform.
Stars: ✭ 127 (-2.31%)
Mutual labels:  automation
H8mail
Email OSINT & Password breach hunting tool, locally or using premium services. Supports chasing down related email
Stars: ✭ 2,163 (+1563.85%)
Mutual labels:  email
Expo Disneyplus
Disney+ UI Clone with React Native & Expo
Stars: ✭ 130 (+0%)
Mutual labels:  clone

Automatic setup of user identity on git clone

Screenshot of a git clone

Whenever a repository is cloned, author information (user.email, user.name) is set according defined patterns. No longer pushing commits with your corporate email address by accident.

Installation

In case you do not already have a git template directory, create and register one:

mkdir -p ~/.git-templates/hooks
git config --global init.templatedir ~/.git-templates

Copy the file "post-checkout" to your registered git template directory:

cp post-checkout ~/.git-templates/hooks/

Configuration

You can use the file ".git-clone-init" as a starting point. Keep in mind to create a pattern for each protokoll you are using, normally ssh and https.

Example:

case "$url" in
  *@github.com:*  ) email="[email protected]";    name="public name";;
  *//github.com/* ) email="[email protected]";    name="public name";;
  *@corp.com:*    ) email="[email protected]"; name="real name";;
  *//corp.com/*   ) email="[email protected]"; name="real name";;
esac

Usage

Just do a normal "git clone" as usual.

Known issues

git-clone-init won't work if you clone using "-n" or clone an empty repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].