Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling git ignore files and folders globally at bitbucket project level

Naveen Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2020

Hi,

  We have 10 + bitbucket projects and each project has 50 + repositories. For my businiess use case, Maintaining .gitignore file at all locations is not secure and efficient way as i will  continuously have add-on's to .gitignore file and also there are chances that developers may remove .gitignore file or force commit files.  Would like to know steps to setup gitignore file to avoid files and folders at bitbucket project level.

 

Thank you!

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 8, 2021

Hi! 

you need to create a manually that file. (Because that file is just instruction of excludes for your repo) 

https://git-scm.com/docs/gitignore

 

Or write a script to expose that files

sriprasanna.mg
Contributor
December 14, 2021

That is not an answer! 

Other systems provide better way of addressing this requirement: .gitignore API | GitLab

Is there something similar in Bitbucket datacenter?  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events