Hi, Joseph. Yes, you can write files to the repo using the API, as shown at https://docs.gitlab.com/ee/api/commits.html#create-a-commit-with-multiple-files-and-actions
The command to write a file to a repo would be: curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --header "Content-Type: application/json" --data "$PAYLOAD" https://gitlab.example.com/api/v3/projects/1/repository/commits where $PAYLOAD is the JSON payload detailing the commit. Which part of the example do you not understand? Is there a particular point where it stops making sense to you? Best, Aleksey On Thu, Jan 19, 2017 at 12:39 PM, Tiglath <tiglathsur...@gmail.com> wrote: > > > I discovered you can obtain repo files via the https://gitlab.com/ > <project>/raw/master/<file> URL without having to go through GIT. > > Can I equally write files to the repo directly? > > The Gitlab API doc has an example using curl and POST, but I don't > understand it. > > The file in question is https://gitlab.com/rotonda/ > SprintView/raw/master/requirements > > I can get it raw at that URL, with curl, but what would be the curl > command to write it back to the repo? > > Thanks > > Joseph > > > -- > You received this message because you are subscribed to the Google Groups > "GitLab" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to gitlabhq+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/gitlabhq/6a7592da-eb42-46f6-ad1a-2a59aa2c847b%40googlegroups.com > <https://groups.google.com/d/msgid/gitlabhq/6a7592da-eb42-46f6-ad1a-2a59aa2c847b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > ᐧ -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/CANNWuVUtcrE7O%2BQ-BXV7OvqZFMTbD5-0tjnL3_9B9QEUV%3DEEGw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.