How to save unpushed commits in a flash drive Edited

Hello Guys!

I'm working in a C++ game and i'm using SourceTree to save my codes. I have 43 commits unpushed because of their size and I need to format my PC. I have an external hard drive and I want to save all these unpushed commits in this HD to I don't lose them. How do I do that?

EDIT: The files that are bigger than 100MB (biggest size accepted in GitHub) had already been deleted, but in one of the 43 commits, it was created. How do i delete this file from the commits?

1 answer

0 votes

Copying the whole of your repository folder, including the .git subfolder, will take a ll of you local state onto the external harddrive.

To remove old commits containing large files you can try the BFG

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

232 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot