br-automation-com / BnR-DevOps-Package

Contains materials for implementing DevOps practices for Automation Studio project development.
22 stars 1 forks source link

.gitignore not working #2

Closed Dualton closed 1 year ago

Dualton commented 1 year ago

had to remove a couple of backslashes from .gitignore to make it work in my setup:

/AS/System/ /Binaries/ /Diagnosis/ /Temp/ /*.isopen

to

AS/System/ Binaries/ Diagnosis/ Temp/ *.isopen

otherwise files would not be ignored. am I missing something or is there an error in your .gitignore?

wesleybuchanan commented 1 year ago

Hi @Dualton, Our .gitignore file is meant to be placed in the Automation Studio project's directory, the same directory that contains the Logical and Physical folders.
image

The / at the beginning of the line makes it so only those directories in the Automation Studio project's directory would be ignored. For example a folder Logical/Temp would not be ignored with our .gitignore file but would be with your changes.

You can also find more information on the .gitignore rules at https://www.atlassian.com/git/tutorials/saving-changes/gitignore#git-ignore-patterns

Dualton commented 1 year ago

Ah, my fault! Had .gitignore stored in root but AS project stored in a sub folder.

Thanks!