Skip to content

How to mirror a git repository without the pull refs  #1089

Description

@sylvainmouquet

Hello,

When i clone a GitHub project i get the list of pull request (git.reference).
I would like push only branches and tags but not pull request.
Example with git is present here : https://christoph.ruegg.name/blog/git-howto-mirror-a-github-repository-without-pull-refs.html

It's possible to do the same with gitpython

Thanks

Activity

  1. changed the title [-]How to mirror a git repository without the refs pull request[/-] [+]How to mirror a git repository without the pull refs [/+] on Nov 25, 2020
  2. Byron commented on Nov 26, 2020

    @Byron
    Member

    The easiest way to go about this would probably be to use GitPython as easier way to execute git commands. That way, git commands you know apply directly without having to think about how to do it with GitPythons own abstractions.

    Even though I close this issue, please feel free to keep commenting for follow ups.

  3. reopened this on Feb 26, 2021
  4. locked and limited conversation to collaborators on Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions