. Gitignore a Folder Content [Duplicate]

. Gitignore a Folder Content [Duplicate]

Possible Duplicate:
Ignoring directories in Git repos on Windows

My web app has the following directory layout:

myapp/
    .gitignore
    .git/
        ...

    static/
            mytest.txt
            fgs.ico
    ledgerware/
        static/
            mytest.txt
            fgs.ico
        ...

I'd like to edit existing myapp/.gitignore file so that when git push it ignores all files inside myapp/ledgerware/static folder, but NOT myapp/static folder. Can someone help me with this?

2

1 Answer

Just make the line in .gitignore as specific as you want it to be:

ledgerware/static/*
4
James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.