The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Path during branch checkout on Windows machine due to colon character in filename

Scott Shapiro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 27, 2025

I am trying to get a new windows computer up and running and I just installed SourceTree and connected it to github.  When I try to checkout a branch, I'm getting an error because there are files that have a colon in the name which is not compatible with Windows machines.  Does anyone know how I can tell git to bypass or ignore these files when checking out a branch?  We have too many branches for me to feasibly change the filename or delete the files in every branch (as suggested in this article) so I'd rather just skip them in the checkout process.

Also, for what it's worth, on my previous Windows machine, I'm connected to the same repository and do not appear to experience the same issue which tells me that I probably found a way around it once before...

Thank you!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Brant Schroeder
Community Champion
October 3, 2025

@Scott Shapiro welcome to the Atlassian community 

You should be able to use gitignore with pattern matching to accomplish this.

TAGS
AUG Leaders

Atlassian Community Events