How do I set Allow LFS on the creation of a repository from the BitBucket API?
To set Allow forks, I set forkable to true on the body of my BitBucket API POST command.
Is there an equivalent flag that can be included in the body of my BitBucket API POST command to set Allow LFS?
Hello Marc,
Thank you for the quick response.
I'm currently building a Power Shell script to import files and folders from another source control tool to Git and BitBucket. This script automates the creation of 266 repos. Since some of the files to be imported are quite large (most of them are binary files), I want to use LFS. And since the repos are created automatically with the script, I would have liked to check Allow LFS through the API as opposed to having to check the checkbox from the GUI 266 times.
Let me know if you think of something to avoid having to perform this manual intervention 266 times.
Thank you again and best regards,
Serge
When I try to create a new repository using this link: https://bitbucket.org/workspace_id/workspace/create/repository
I can't see any LFS option, AFAIK, LFS is enabled by default when creating a repository, you'll just have to install Git LFS locally to upload files to LFS. See this documentation.
Let me know if I'm missing something in the creation of repository UI.
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the community.
Unfortunately, there's no option to set the setting "Allow LFS" via API at the moment.
May I kindly ask what exactly you're trying to achieve?
Regards,
Mark C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.