Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Taylor Fritz
Taylor Fritz
12,803 Points

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.

Natalia Parzyk
Natalia Parzyk
2,144 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.