Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ "$#" -ne 3 ]; then
- echo "Usage: $0 GITLAB_URL API_TOKEN REPO_NAME" >&2
- echo "For example: $0 your.gitlab.com yoursecrettoken a-cool-repo"
- exit 1
- fi
- GITLAB_URL=$1
- API_TOKEN=$2
- REPO_NAME=$3
- curl -v -H "Content-Type:application/json" $GITLAB_URL/api/v3/projects?private_token=$API_TOKEN -d "{ \"name\": \"$REPO_NAME\" }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement