-
Notifications
You must be signed in to change notification settings - Fork 893
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededno-autocloseIssues/PRs to be ignored by stale botIssues/PRs to be ignored by stale bot
Milestone
Description
When running:
err = wt.Reset(&git.ResetOptions{ Mode: git.HardReset })
Untracked files are over written.
when running the git equivalent
git reset HEAD --hard
untracked files are left alone.
Also, when running:
wt.Checkout(&git.CheckoutOptions{Branch: plumbing.ReferenceName("refs/heads/main"), Force: true})
Untracked files are over written.
when running the git equivalent
git checkout main -f
untracked files are left alone.
I think that the behaviour should be the same, as untracked files are not apart of the repo and this is causing me issues with my work.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededno-autocloseIssues/PRs to be ignored by stale botIssues/PRs to be ignored by stale bot