How can I see list of ignored files in git?

后端 未结 3 1271
轮回少年
轮回少年 2021-01-06 06:41

I have been using git from past few months and I like git. I was wondering if there is a command which can show list of ignored files in a project.

I tried this

3条回答
  •  情歌与酒
    2021-01-06 07:05

    You can edit the .gitignore file found in the same directory as your .git folder if you are looking for a list of files to ignore (listed on each line as regular expressions).

    Example:

    cat .gitignore
    

    might show:

    ^build$ 
    ^build[/].
    *-objs/ 
    .project
    *~
    

提交回复
热议问题