The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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?  

TAGS
AUG Leaders

Atlassian Community Events