0

In GitAhead, I would like to open/download/save a file from a specific commit. In sourcetree, slecting a fil gives you two buttons: "Open before" and "Open after". I'm looking for something similar.

Is there a way to open a specific version of a specific file, without having to checkout the whole commit?

1 Answers1

0

It's not as obvious as it should be. Navigate to the commit that changed the file. Press and hold the pencil icon in the file's header widget. You should see a menu pop up with options to edit the new and old revisions. The old revision is the file as it existed before the change, and new is the file after the change. Unfortunately, as there is no "Save As", you would have to resort to copy/paste to save.

The other option is to switch to the tree view. That shows arbitrary files as they existed in a given revision. If you want to get a file's contents before the change, you have to switch to the parent commit.

Jason Haslam
  • 2,617
  • 13
  • 19
  • Thanks, this confirm what I am observing. Sadly, my main merging tasks are with binary files. Viewing them as text within GitAhead is of no use... I hope they implement that features someday! – LionRelaxe Mar 27 '20 at 20:47
  • I see. In that case, there's no way to do it in GitAhead. – Jason Haslam Mar 28 '20 at 01:32