Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to ignore folder structure while exporting in GIT Tortoise


I have a repository which has a lot folders and sub folders.

I use GIT Tortoise to check the files in a particular TAG or commit. But When I try to export the files of that TAG/commit to a specific folder, the files along with the folder structure gets exported.

I just need the changed files to be exported and not the folder structure along with it which contains the file.

Example : If file FileA is changed in folderA of the repo and FileB is changed in folderB the same repo. When I use GIT Tortoise to check the files changed in that commit it shows :-



And when I export it both the files FileA and FileB get exported along with folderA and folderB. I need to only export the files and not the folders.

Is there to do this ? Please let me know if this can be done in any way using GIT Tortoise or SourceTree. I do not want to use GIT bash for this.

1 answer

0 votes
minnsey Atlassian Team Apr 06, 2018


The export functionality in TortoiseGit uses the git archive functionality see, this will always export a copy of the full worktree for the selected tag or commit.

I think the closest you will get to what you want in Sourcetree is to open the commit/tag you are interested in and then in the commit details select the files and use the 'Open Selected Version' option.

This will give you the file contents you want, although you will need to manually save them and if you have a lot of files to open it may be quite time consuming.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

3,289 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you