Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JounQin opened this issue Dec 14, 2023 · 0 comments
Open

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

JounQin opened this issue Dec 14, 2023 · 0 comments

Comments

@JounQin
Copy link

JounQin commented Dec 14, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant