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 Git Basics Getting Started With Git Committing Changes

Mark Wilkowske
PLUS
Mark Wilkowske
Courses Plus Student 18,131 Points

Commits and how does the .save file work in the repository?

While editing 'myfile' in my repository I noticed myfile.save and I'm not sure how that got created. I think I'm missing a part of the commit process. Thanks for your help!

1 Answer

.save files are a file format used to preserve unsaved changes made to a file. These are a nano filetype, rather than specific to git, and can be created if nano is force to quit without saving. If you don't need the changes in that file, you can probably delete it:

https://askubuntu.com/questions/601985/what-are-save-files

As for tracking changes made to the original myfile - if you open it, are you seeing the changes you wanted to make? Secondly, what are you seeing if you use git status?

cd ~/project-directory-path-here
git status