Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

How do I copy a file in history view?

My use case:

I am browsing through the history, looking at an individual commit and I want to copy one (or perhaps even many) file/s as you would in Finder via the context menu.

I do this quite frequently as I need files from repository A copied into repository B or also when I want to "revive" a file from an old commit and git operations would be more complicated than simply re-creating the file by hand.

The closest I can get to that is to create the file myself and then mark all lines of "File contents" and CMD+C or "Copy" via the context menu.

I haven't found a feature request for this yet and if feature requests belong somewhere else please point me to that location. Also, I am aware of custom actions and this could probably be done via a custom action + shortcut, but it would just feel very intuitive if this would be integrated by default in SourceTree.

0 answers

Suggest an answer

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

5,768 views 4 12
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