GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - git-hook/post-clone: Implementation of a git post-clone hook

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
hooks
hooks
 
 
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Overview

As git does not provide a post-clone hook, some repositories come with manual instructions for post-clone configuration. This project effectively provides a post-clone hook, allowing project maintainers to specify a project's post-clone behavior and install other various hooks.

Use

To clone a repository with post-clone hooks:

curl -fsSL https://raw.githubusercontent.com/git-hook/post-clone/master/bin/clone \
  | bash -s -- <normal-clone-args>

All arguments will be passed directly to git clone.

Tip

If you'd rather not pipe curl to bash, use this approach instead:

git clone https://github.com/git-hook/post-clone /tmp/post-clone
git clone --template=/tmp/post-clone [email protected]:username/repo-of-interest

In addition to cloning the repository, this will:

  • ensure /hooks/ is symlinked to /.git/hooks/, if present in the cloned repo
  • ensure /.git/hooks/post-clone is invoked, if present in the cloned repo

Note

This hook will not be automatically invoked again.

Benefits

Using this post-clone template allows repo maintainers to:

  • automate installation of client-side git hooks
  • version-control this automation inside the relevant repository

Acknowledgements

This git hook was inspired by this StackOverflow post.

About

Implementation of a git post-clone hook

Topics

clonegitgit-hook

Resources

Readme
License
Activity
Custom properties

Stars

61 stars

Watchers

4 watching

Forks

12 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.