Skip to content

Instantly share code, notes, and snippets.

@Pelt10
Pelt10 / convertBareRepoToNormalRepo.sh
Last active March 29, 2021 09:07
Convert directory with git bare repo (Gitlab repo) to normal repo
echo "****************************************************"
echo "* *"
echo "* CONVERT BARE REPO TO NORMAL REPO *"
echo "* *"
echo "****************************************************"
echo " -> untar repo.tar.gz"
tar -zxf repo.tar.gz
for user in $(ls repositories/); do
for repo in $(ls repositories/$user/); do
pathRepo="repositories/$user/$repo/";