cancel
Showing results for 
Search instead for 
Did you mean: 

.gitignore - how to include path in excluded folder?

Highlighted

.gitignore - how to include path in excluded folder?

I have my first magento project

I want to exclude from tracking folder:

app/ --- this where the repo starts

And Inculde path: app/frontend/design/newziw/default

I think I will go crazy in a second Smiley Very Happy please help me out guys

1 REPLY 1
Highlighted

Re: .gitignore - how to include path in excluded folder?


@Tom wrote:

I have my first magento project

I want to exclude from tracking folder:

app/ --- this where the repo starts

And Inculde path: app/frontend/design/newziw/default

I think I will go crazy in a second Smiley Very Happy please help me out guys


app/*

!app/frontend/design/newziw/default

 

The difference is between app/ and app/* 

with app/ git will not look in the folder at all

with app/* git will look under app and ignore everything there 

now the rule :

!app/frontend/design/newziw/default

works