Why does Git display certain new folders when checking out old revisions?
Posted
by ConnorG
on Stack Overflow
See other posts from Stack Overflow
or by ConnorG
Published on 2010-03-13T02:56:19Z
Indexed on
2010/03/13
2:57 UTC
Read the original article
Hit count: 338
Hey all - I'm still learning the ropes of Git (love it!) but the other day I noticed some behavior I just do not understand. We have, in essence, three folders that got moved into the repository at different times (one immediately after we created the repo, one a little while later, and one just recently). Recently, I had to get some code out of an old revision. I used
git checkout <old SHA1 hash>
to pull up one of our first checkins, when I noticed Git showed the old folder (as it should), as well as the newest folder (which got added to the repo long after the checked out commit was made). But it did not show the second folder.
What would cause Git to display the newest folder with the old revision?
© Stack Overflow or respective owner