versioning

Revert a commit in the local repository

Changed on

Revert a commit in the local repository by creating a new commit that undoes the changes introduced by the specified commit.<br/><br/>Use the <code>force</code> field to proceed even when the working directory is not clean.

post/version/revert

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    • HTTP bearer
    • or OAuth 2
      Client credentials
      Token URL: https://login.cribl.cloud/oauth/token

Request body

commitstring required

SHA-1 hash of the commit to revert.

forceboolean

If <code>true</code>, force the revert even when the working directory is not clean. Otherwise, <code>false</code>.

messagestring

Custom message to use for the revert commit. If omitted, a default message is generated.

Response

The created GitRevertResult object in a single-item list.

countinteger required

Number of items returned in the items array.

Changes

    • info

      added the non-success response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the optional property to the response with the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      added the required property to the response with the status