Last active
February 17, 2019 14:47
-
-
Save jboockmann/c087835b5c751971e2741be09f01fdc2 to your computer and use it in GitHub Desktop.
For each folder do: init as local git repository, create and push repository to gitlab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for d in */ ; do | |
cd "$d" | |
git init | |
git add . | |
git commit -m "init" | |
echo "${d::-1}" | |
git push --set-upstream git@gitlab.com:XXX/"${d::-1}".git master | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment