+
Skip to content

repo.write throws "Update is not a fast forward" after first successful create #78

Closed
@ranchodeluxe

Description

@ranchodeluxe

Using the example from the docs, I can successfully write to my repo.

// example write
repo.write('master', 'path/to/file', 'YOUR_NEW_CONTENTS', 'YOUR_COMMIT_MESSAGE', function(err) {});

But only the first save seems to work. The others return a 422 status with the following error. I did notice this prose ticket...wondering what the workaround there was?

{
  "message": "Update is not a fast forward",
  "documentation_url": "http://developer.github.com/v3"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载