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 trialsilva celso
13,513 Pointsgit log? is your commits stored is it only temporarily in RAM?
when you go git log, where exactly is that log file of all your commits stored locally or is that something only in memory?
1 Answer
Jennifer Nordell
Treehouse TeacherHi there, silva celso ! No, your commits are not temporary. As I understand it, the git.log
command reads from the files in the .git\logs
subdirectory and prints it out for you in a nicely formatted way. Your commits are safely saved, and if you use it in conjunction with GitHub (or the equivalent), they will also be saved in the cloud. If you cannot see the .git
subdirectory and you're using Windows, you may have to enable the ability to see hidden folders as this will count as hidden.
Hope this helps!
silva celso
13,513 Pointssilva celso
13,513 PointsCertainly does. I was told that the commits are only stored in memory which did not make much sense to me. Thx, i will look at that file.