How to list all untracked files in GIT?

2

How do I list all files not added to the commit in git ?

It would be important to have this listing so I know when to make a git add on specific files.

Note : I use git from the command line because my operating system is Ubuntu.

    
asked by anonymous 13.08.2015 / 16:18

3 answers

3

You can see the files that have been modified by the command:

 git status

This command displays modified files and files that will be added to the repository.

Untracked

Untracked shows only those files that are not yet part of your repository ie created after you have done pull in the project and made changes.

    
13.08.2015 / 16:27
4

Another way to list files marked as untracked would be:

git status --untracked

Or even

git status -u
    
13.08.2015 / 16:25
3

Use git status

Documentation: status

    
13.08.2015 / 16:23