Stop marking files as hidden?


I just used SourceTree Mac to commit files I have in a project. Since I also work on those files from Windows, I had the surprise to notice that the commited files are marked as hidden.

It's still possible to see them on the Mac finder, but when switching to Windows, they "disappear" and my compilers can't open them.

After checking the options, I didn't find any way to stop SourceTree mark them hidden. 

Is there a way to avoid that behaviour?
Thanks for any help


4 answers

Are you using something like Parallels or is this repo stored on a network drive being accessed by two totally different machines?


yes I use VMWare Fusion and develop mainly from the Windows side, but all files and repositories are on the Mac side accessed via a shared folder: Y:\projects\...

Commited files have the Windows  Hidden flag set though. I see them on the Mac side which ignores those flags, not in the Windows side unless I tell it to show hidden items. But my compiler doesn't see them natively.

Any way not to mark them as hidden?

It is not SourceTree that marks your files hidden. One of the tools mentioned in your comment above will be the one doing it.

Absolutely not.
All files are fine as long as they don't pass through SourceTree. Once committed, only thoses ones are marked as hidden. All the other ones, excluded from .gitignore, are left as-is. The Windows side has nothing to do with this since they don't interact with those files and never set those flags in any manner.
The only files that are suddenly marked as hidden are the ones going through a SourceTree commit.
A manual commit via the git executable doesn't alter them either. 

That's why I need to disable that feature in order to be able to use SourceTree as expected. 

This should be a comment in response to the answer it is responding to, not an answer itself.

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,105 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