๐ฆ Create GitLab Projects for Directory List via API#
BASH, CURL and gitlab.com/api/v4
[1]#
1GITLAB_TOKEN="";\
2for x in `ls | tr -d ' '`\
3;do\
4echo ">>>> creating repository for $x ... ";\
5curl\
6-X POST\
7-H "Content-Type:application/json"\
8https://gitlab.com/api/v4/projects?private_token=$GITLAB_TOKEN\
9-d '{ "name": "$x" }'\
10;done
Addendum#
Once youโre done reading this article, you can continue by having a look at the related content Iโve linked below.
Git LFS Usage on GitLab Repositories
Git for Beginners: Zero to Hero ๐