2017-07-20 12 views

答えて

0

gitをこのユースケースに使用する必要があります。このために設計されていないAPIでは使用しないでください!ここで

0

は、APIを介してファイルを更新するための公式ドキュメントです:https://docs.gitlab.com/ee/api/repository_files.html#update-existing-file-in-repository

例:

curl --request PUT --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v4/projects/13083/repository/files/app%2Fproject%2Erb?branch=master&author_email=author%40example.com&author_name=Firstname%20Lastname&content=some%20other%20content&commit_message=update%20file' 

関連質問:Updating and committing file by using gitlab api

関連する問題