Skip to content

Keep child repo history when pushing #6

Description

@minimaluminium

👋 Would it be possible to keep the history of the child repo when using this action? I tried it without the force argument thinking it'd do normal push instead of replacing the history, but got an error error: failed to push some refs to ''.

My config is:

- uses: nxtlvlsoftware/git-subtree-action@1.1
  with:
    repo: 'owner/repo'
    path: 'packages/name'
    deploy_key: ${{secrets.GITHUB_DEPLOY_KEY}}
    branch: main

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions