Last active
February 1, 2023 11:43
-
-
Save dimified/1006c2a2f246562d5c1dc32d4278d9f9 to your computer and use it in GitHub Desktop.
Create branch via GitLab API
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
#!/bin/sh | |
curl --request POST --header "PRIVATE-TOKEN: $1" https://$2/api/v4/projects/$3/repository/branches\?branch\=$4\&ref\=master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment