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 Moving Files

Lisa Weil
Lisa Weil
4,919 Points

Are we actually renaming the file or just replacing it?

Are we renaming the silver.txt file name to silver.html or replacing it with our silver.html file?

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Not sure I fully understand the question. I believe that on the back end, Git does treat git mv silver.txt silver.html as the deletion of silver.txt and the addition of silver.html. But that detail is completely hidden from users (and might not even be true anymore as of recent versions, I'm not sure). So it's probably best to think of it as simply moving the file from one name to another.