Unable to view file contents in Windows

I'm following along a Lynda.com tutorial that is using SourceTree. The presenter is using the Mac version and I have the Windows version. I am using Windows 10.

The first issue I hit was I couldn't drag and drop the tutorial folder into SourceTree. So, I simply did File | Open and pointed to the folder on my hard drive. The folder only has 1 file to start.

In the Lynda.com tutorial, the Mac version shows the contents of this text file. I don't see it on the lower right pane. The only way I can view this file is by double-clicking the file name from the lower left pane. However, that opens the file in Windows notepad.

I took a screen snap of how it look on the Lynda.com tutorial, but I can't get the image to insert either by dragging or uploading. The server is responding with a generic HTTP error


4 answers

It'll be hard to help without the screenshot... Do you have "uncommitted changes" selected in the top pane?

I did commit the file. In the tutorial, he is able to see the contents before he even staged the file.

I spoke with a friend via Skype and did a screen share. He said I should've been able to drag the folder over and the contents should show. I decided to delete what I had and start over. This time the folder opened and I could see the file contents. I'm not sure what caused the initial hiccough.

To clarify, I think what you are talking about is the "diff" view. When you are adding a new file, the diff view will typically show every line as being added. You may have to single click on the file first. I have noticed a minor bug occasionally in Windows where the diff view will be blank. Try adding a second file, and then selecting the second file, then back to the first in SourceTree.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,125 views 4 2
Read article

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you