Skip to content

How to teach git-tfs to ignore certain branches/changesets? #1033

@larsxschneider

Description

@larsxschneider

Hi,

I am importing a large TFS repo to Git and I would like to carry over as much history as possible. A git tfs clone --branches=none works but with auto or all I run into a legitimate permission error:

The name of the local branch will be : XXX
error: a problem occurred when trying to clone the repository. Try to solve the problem described below.
In any case, after, try to continue using command `git tfs fetch`

TF14098: Access Denied: User Lars Schneider needs Read permission(s) for at least one item in changeset 123.
TF14098: Access Denied: User Lars Schneider needs Read permission(s) for at least one item in changeset 123.

Is there a way to tell git tfs to import all branches except for branch XXX? Or is there a way to tell it to ignore certain changesets (I don't want these changes in my Git repo anyways).

Thanks for this great tool!

Cheers,
Lars

C:\>git tfs version
git-tfs version 0.25.1.0 (TFS client library 14.0.0.0 (MS)) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions