Follow

Rewrite an altered file with that file's contents from a previous commit:
git show HEAD:some.file > some.file

stackoverflow.com/a/610315/997

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!