I want to update file content and commit it. To be able to achieve it, I looked the api of gitlab from the url;
http://mygitlabadress/help/api/README.md
This returns as;
{"file_name":"test","file_path":"file1/file2/test","size":5,"encoding":"base64","content":"ZmRhcwo=","ref":"master","blob_id":"e1afa79f4...","commit_id":"5d61796...","last_commit_id":"5d617962a23c07345e68..."}
But when I check commits on master branch. The commit is not done. I don't understand why this is happening. The above request doesn't return an error. On the contrary, it returns as commit is done.
What am I missing? How can I update the file and commit it??
解决方案
It looks like you are making a GET request instead of a PUT.
Are you using curl ? You should use the example curl request given in the doc :