Get git not to show untracked files

后端 未结 6 811
刺人心
刺人心 2020-12-23 20:16

When doing git commit, is there a way to not display the untracked files in my editor (defined in $EDITOR)? I know how to do so in the shell (

6条回答
  •  不思量自难忘°
    2020-12-23 21:09

    From the git-commit man page:

           -u[], --untracked-files[=]
               Show untracked files (Default: all).
    
               The mode parameter is optional, and is used to specify the handling of untracked
               files. The possible options are:
    
               ·   no - Show no untracked files
    
               ·   normal - Shows untracked files and directories
    
               ·   all - Also shows individual files in untracked directories.
    
                   See git-config(1) for configuration variable used to change the default for
                   when the option is not specified.
    

提交回复
热议问题