ok, one way to do this is to use the clone --template
option.
Specify the location where the client side hooks will be stored as value to the --template
switch. The hooks are copied to the clone, and the post-checkout hook is fired immediately!
More Related Contents:
- How to clone all remote branches in Git
- Message ‘src refspec master does not match any’ when pushing commits in Git
- How do I clone a single branch in Git?
- Git push requires username and password
- Can Git hook scripts be managed along with the repository?
- What’s the difference between git clone –mirror and git clone –bare
- Putting Git hooks into a repository
- How to convert a normal Git repository to a bare one?
- How can I automatically push after committing in Git?
- How do I properly git stash/pop in pre-commit hooks to get a clean working tree for tests?
- Make Git automatically remove trailing white space before committing
- How can I automatically deploy my app after a git push ( GitHub and node.js)?
- Git hook to send email notification on repo changes
- Local executing hook after a git push?
- Can a Git hook automatically add files to the commit?
- change default git hooks
- Git remote/shared pre-commit hook
- BitBucket – download source as ZIP
- How do I react to new tags in git hooks?
- Is there a way to trigger a hook after a new branch has been checked out in Git?
- Tracking changes to hooks in .git/hooks
- Is there a way to lock individual files or directories on fork when using git?
- How would I write a pre-merge hook in Git?
- git-clone and post-checkout hook
- How to clone all repos at once from GitHub?
- Unable to Connect to GitHub.com For Cloning
- How to get Git to clone into current directory
- Git clone without .git directory
- Using GIT to deploy website
- Bower install using only https?