Git status ignore untracked files

broken image
broken image

# no changes added to commit (use 'git add' and/or 'git commit -a') ' to discard changes in working directory) Below is a snippet which demonstrates that, and the diverse outputs of git status vs git ls-files ( git shell output is prefixed with #): echo 'test more' > file_tracked_changed.txt Now, after the initial commit, I want to change the file_tracked_changed.txt files, and keep the others (here, only file_tracked_unchanged.txt) unchanged for the next commit.

broken image

Git config user.email 'test' > file_tracked_unchanged.txt Here is a brief snippet example (which you can paste in your Linux terminal), creating a new git repository and adding some files to it (using git version 1.7.9.5): cd /tmp/

broken image