Skip to content

Should run git reset --hard on checking out to different branches #113

@JounQin

Description

@JounQin

For example, when master is not ready and I add a gitsubmodule in a PR, currently this action will always fail the submodule contains some files which are expected to be ignored, but when this action checks out to main branch, the submodule is still there, so maybe git reset --hard may help.

/usr/bin/git checkout -f main
warning: unable to rmdir 'DOMPurify': Directory not empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions