I have a plain text file, I want to open a version from a previous commit. How do I get SourceTree to do it's magic opening the previous version by putting it in /var/ and renaming it with the commit SHA1?
It will do this for binary files, but I can't figure out how to do this for text files.
Help!
You can checkout a file from a previous version by right-clicking on it in either the log view or the single-file log view and selecting 'Reset to this commit', but that will overwrite the version in your working directory.
To view the file *temporarily* without altering your working directory, just press Space (or right-click and select Quick Look) to quickly view any file using Quick Look - this even works on historical file state. If you then want to open the file in the native editor (still in the temporary area), click the 'Open with <app>' in the top-right of the Quick Look window, or double-click anywhere in the Quick Look window area.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.