Quantcast
Channel: Create a repo in Gitlab using CLI - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by Zaz for Create a repo in Gitlab using CLI

$
0
0

Add export GITLAB_API_TOKEN=______ to your .bashrc or relevant file, then run:

curl --request POST -H "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" \  -H "Content-Type:application/json" \"https://gitlab.com/api/v4/projects" \  -d "{ \"name\":\"test\", \"description\":\"Description.\" }"

Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>