Skip to content

Instantly share code, notes, and snippets.

Avatar
💻

Ricardo Metring ricardo

💻
View GitHub Profile
@blvz
blvz / gh-deploy-clone.sh
Last active August 11, 2022 08:35
Creates a deploy key and clones the repository.
View gh-deploy-clone.sh
#!/usr/bin/env bash
read -r -d '' usage << EOM
Usage:
gh-deploy-clone user/repo [ENVIRONMENT]
EOM
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1