Migrating from TFS to Git - Ignore Nuget

354 views
Skip to first unread message

ack...@gmail.com

unread,
May 11, 2014, 1:55:52 AM5/11/14
to git-t...@googlegroups.com
Hi,

I am looking for migrating TFS repositories to Git (just source code). TFS includes all binary nuget packages, which consume quite a good amount space. Since GitHub puts 1GB limits on repositories, I want to create ignore for nuget packages. What is best way to do it?

Thank you,
- Akash Kava

Wiebe Tijsma

unread,
May 12, 2014, 4:13:30 AM5/12/14
to git-t...@googlegroups.com, ack...@gmail.com
What have you tried?

Just make sure package restore works on your build server.

http://docs.nuget.org/docs/reference/package-restore-with-team-build

ack...@gmail.com

unread,
May 12, 2014, 7:46:36 AM5/12/14
to git-t...@googlegroups.com, ack...@gmail.com
Package restore works fine, problem is not compilation, program is git taking too much space.

Here are steps,

1. I already have a working TFS repository (history contains all the nuget package libraries, taking upto 600MB space)
2. When I migrate TFS to Git (even if I create .gitignore to ignore nuget packages), historical changesets (checkins) contain all nuget libraries

Problem is how do I remove historical checkins of nuget libraries?

Wiebe Tijsma

unread,
May 13, 2014, 1:30:46 PM5/13/14
to git-t...@googlegroups.com

Matt Burke

unread,
May 14, 2014, 8:55:28 AM5/14/14
to git-t...@googlegroups.com
If you've already run `git-tfs clone`, use filterbranch like Wiebe
suggested. If you haven't run `git-tfs clone`, or if you want another
option, try `git tfs clone --ignore-regex /packages/ http://server/tfs
$/Project`.

--
Matt


On Tue, May 13, 2014 at 1:30 PM, Wiebe Tijsma <wi...@netindustry.nl> wrote:
> Use the normal GIT way of removing large binaries
>
> http://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-git-repository
>
> --
> You received this message because you are subscribed to the Google Groups "git-tfs-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to git-tfs-dev...@googlegroups.com.
> To post to this group, send email to git-t...@googlegroups.com.
> Visit this group at http://groups.google.com/group/git-tfs-dev.
> For more options, visit https://groups.google.com/d/optout.

Philippe Miossec

unread,
Dec 8, 2014, 4:06:48 PM12/8/14
to git-t...@googlegroups.com
Bfg ( http://rtyley.github.io/bfg-repo-cleaner/ ) is also a very good tool to remove files and folders of git history...
Reply all
Reply to author
Forward
0 new messages