You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
192 B
Bash
11 lines
192 B
Bash
4 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euxo pipefail
|
||
|
shopt -s failglob
|
||
|
|
||
|
for PROJECT in ./git_clones/*
|
||
|
do
|
||
|
PROJECT_BASE=$(basename $PROJECT)
|
||
|
mv ${PROJECT}/.git/index ./git_index/${PROJECT_BASE}
|
||
|
done
|