Skip to content

Instantly share code, notes, and snippets.

View creazy231's full-sized avatar
🎯
Focusing

Tobias Thiele creazy231

🎯
Focusing
View GitHub Profile
@creazy231
creazy231 / gh-deploy-clone.sh
Last active August 23, 2023 23:15 — forked from blvz/gh-deploy-clone.sh
Creates a deploy key and clones the repository.
#!/usr/bin/env bash
# Install:
# curl https://gist.githubusercontent.com/blvz/8eeebacae11011c25fc79eff12f49ae9/raw/6f2f7f3709a0fe852d8a3a5bb125325e3ffbc7d8/gh-deploy-clone.sh > /usr/local/bin/gh-deploy-clone
# chmod +x /usr/local/bin/gh-deploy-clone
read -r -d '' usage << EOM
Usage:
gh-deploy-clone user/repo [ENVIRONMENT]