Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
if you u used
git rm filename
to delete a file then
git checkout path/to/filename
doesn't work, so in that case
git checkout HEAD^ path/to/filename
should work
git checkout HEAD^ filename
if you used