.gitignore a folder content

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?


只需将.gitignore的行设置为具体就如您所愿:

ledgerware/static/*
链接地址: http://www.djcxy.com/p/45166.html

上一篇: 将文件存储在每个文件夹和子文件夹中

下一篇: .gitignore一个文件夹内容