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 (
        
You can temporary use the git commit option -uno to mask untracked files (git help commit).
If you want a permanent solution use the .gitignore file.
For instance, if you want to ignore the file bar.foo and any file with the .bak extension, you juste have to create a .gitignore file in the root directory of your project containing :
bar.foo
*.bak
Some file are ignored by a global gitignore file (for instance, dot file and directory are ignored).