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.
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.
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG