Skip to content
Simple utility to run post-clone jobs after git clone.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
examples
.glone
LICENSE
README.md
package-lock.json
package.json

README.md

glone 🌈

Downloads

Simple utility to run post-clone jobs after git clone.

Built-in features:

  • 🏃‍♀️Run script after cloning is completed.
  • 🔗 Auto install git hooks.

Usage

Create .glone file in your repository.

{
  "install": "install.sh",
  "hooks": {
    "pre-commit" : "./pre-commit.js"
  }
}

Just use npx glone instead of git clone when you're going to clone this repo.

npx glone <repository>

Try it with this repo:

npx glone git@github.com:ramesaliyev/glone.git

API Reference

.glone file

Path Explanation
install script that should run after git-clone is completed
hooks config for git hooks, glone will copy all of them without any check.

CLI Arguments

npx glone <repository> [directory] -- [other git clone arguments]

Scripts

Your scripts can be any kind of file as long as have correct shebang in it. Check examples folder for example scripts.

You can’t perform that action at this time.