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 vote

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 https://rtyley.github.io/bfg-repo-cleaner/

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 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