Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial - largefiles & bitbucket

I just got the latest mercurial and started adding in largefiles.

However, now I can't push changes:

abort: ssh://[email protected]/mysite/bitbucket.org does not appear to be a largefile store

How can I push to bitbucket now? I have multiple commits that include both largefiles and regular code commits. I'm OK with just forgeting all the largefiles I've added, but how can I do that without reverting all of my real commits?

like image 457
keflavich Avatar asked Jan 24 '12 20:01

keflavich


1 Answers

As mentioned in an answer to this question, you can use the convert extension to create a new repository. Use --filemap to exclude the large files you don't want. This might be a problem if you have already pushed (other files) to bitbucket. Luckily, there is another answer to the same question which discusses editing history and has a recipe to remove a file from history. Since I'm assuming that you haven't pushed the large file anywhere you should be okay.

like image 95
Ivan Andrus Avatar answered Oct 11 '22 19:10

Ivan Andrus