• We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Atlassian status as of May 2019

      Hi everyone,

      Git LFS file locking is supported starting from Bitbucket Server 6.3.

      Details on locking and unlocking feature is here - Working with Git LFS Files.

      Anton Genkin
      Product Manager - Bitbucket Server

      Original description is below:

      The Git LFS 2.0 client has been released and supports the new Git LFS File Locking API. Bitbucket Server currently (as at version 4.14) does not support this API.

      The Git LFS client, upon attempting to lock a file will report the server does not implement the locking API:

      $ git lfs lock galaxy1.jpg
      Lock failed: Not Implemented: https://user@bitbucket.example.com/scm/myproject/lfstest.git/info/lfs/locks
      

      SSH Caveat:

      Where an SSH remote is used the error message indicating "lock failed" will be different, it will report as an "Authorization error" as below:

      Lock failed: Authorization error: https://bitbucket.example.com/scm/myproject/lfstest.git/info/lfs/locks
      Check that you have proper access to the repository
      

      The reason for this is, when authenticating via SSH a JWT authentication token is returned, for use on the Git LFS HTTP based APIs. While the token is valid for accessing the Batch API (for example to upload a file) it is not valid for the (non existent) /info/lfs/locks API.

          Form Name

            [BSERV-9623] Add support for Git LFS File Locking API

            elisalter-atl made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 422511 ]
            Frank Doherty made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 453525 ]
            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3397210 ] New: JAC Suggestion Workflow 3 [ 3624897 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: BSERV Suggestions Workflow [ 2686631 ] New: JAC Suggestion Workflow [ 3397210 ]

            We keep on gradually improving git LFS file locking feature. In Bitbucket Server 6.4 we started to show lock icons against filenames on Source view and Source listing pages to help you spot locked files easier. 

            Source listing:

            Source view:

            To learn more about new features in Bitbucket Server 6.4 visit Release notes.

            Cheers,

            Anton Genkin
            Product Manager Bitbucket Server

            Anton Genkin (Inactive) added a comment - We keep on gradually improving git LFS file locking feature. In Bitbucket Server 6.4 we started to show lock icons against filenames on Source view and Source listing pages to help you spot locked files easier.  Source listing: Source view: To learn more about new features in Bitbucket Server 6.4 visit  Release notes . Cheers, Anton Genkin Product Manager Bitbucket Server
            Anton Genkin (Inactive) made changes -
            Attachment New: Screen Shot 2019-06-12 at 9.40.19 am.png [ 357087 ]
            Anton Genkin (Inactive) made changes -
            Attachment New: Screen Shot 2019-06-12 at 10.06.07 am.png [ 357086 ]
            Anton Genkin (Inactive) made changes -
            Attachment New: Screen Shot 2019-06-12 at 9.40.19 am.png [ 357084 ]
            Attachment New: Screen Shot 2019-06-12 at 10.06.07 am.png [ 357085 ]
            Imran Khan made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 429896 ]
            Takuya Nagasaka (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 425284 ]

              Unassigned Unassigned
              behumphreys Ben Humphreys
              Votes:
              354 Vote for this issue
              Watchers:
              227 Start watching this issue

                Created:
                Updated:
                Resolved: