Skip to content

Instantly share code, notes, and snippets.

@jboockmann
Last active February 17, 2019 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jboockmann/c087835b5c751971e2741be09f01fdc2 to your computer and use it in GitHub Desktop.
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
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