Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Introduction to Git Managing Committed Files Commit SHAs and Undoing Commits

Getting an "untracked files" message in my git status

I followed the practice provided and get the correct files when I run ls, however when I run git status, I receive the following output:

On branch master Untracked files: (use "git add <file>..." to include in what will be committed) .DS_Store

nothing added to commit but untracked files present (use "git add" to track)

The practice did not mention this file or an action step. Can anyone explain to me what this file is? I went ahead and follow the instructions to git add and now my working directory is clean.

1 Answer

Natalia Parzyk
Natalia Parzyk
2,210 Points

Did you used it on Mac? I have also "found" the same file in the untracked files.. I believe the file is somehow related to Mac operating system. I've seen the same hidden file before when I've created zip files on Mac.