mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-03 14:14:18 +01:00
12 lines
191 B
Bash
12 lines
191 B
Bash
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
mkdir -p git/repositories/"$1"
|
|
cd git/repositories/"$1"
|
|
git init
|
|
git remote add origin "$2"
|
|
git fetch origin "$3" --depth=1
|
|
git reset --hard "$3"
|
|
rm -rf .git
|