go-git icon indicating copy to clipboard operation
go-git copied to clipboard

Hard reset removes files that are not part of the worktree (and not staged)

Open gancuinoodle opened this issue 4 years ago • 6 comments

Why does Reset delete files that Unstaged? Command line Git is not deleted. w.Reset(&git.ResetOptions{ Mode: git.HardReset, })

gancuinoodle avatar Aug 20 '21 06:08 gancuinoodle

+1, it should be at least a configurable option

breathbath avatar Nov 03 '21 15:11 breathbath

To help us keep things tidy and focus on the active tasks, we've introduced a stale bot to spot issues/PRs that haven't had any activity in a while.

This particular issue hasn't had any updates or activity in the past 90 days, so it's been labeled as 'stale'. If it remains inactive for the next 30 days, it'll be automatically closed.

We understand everyone's busy, but if this issue is still important to you, please feel free to add a comment or make an update to keep it active.

Thanks for your understanding and cooperation!

github-actions[bot] avatar Mar 11 '24 07:03 github-actions[bot]

To help us keep things tidy and focus on the active tasks, we've introduced a stale bot to spot issues/PRs that haven't had any activity in a while.

This particular issue hasn't had any updates or activity in the past 90 days, so it's been labeled as 'stale'. If it remains inactive for the next 30 days, it'll be automatically closed.

We understand everyone's busy, but if this issue is still important to you, please feel free to add a comment or make an update to keep it active.

Thanks for your understanding and cooperation!

github-actions[bot] avatar Jun 28 '24 07:06 github-actions[bot]

see https://github.com/go-git/go-git/issues/1031

kodawah avatar Jul 16 '24 01:07 kodawah

To help us keep things tidy and focus on the active tasks, we've introduced a stale bot to spot issues/PRs that haven't had any activity in a while.

This particular issue hasn't had any updates or activity in the past 90 days, so it's been labeled as 'stale'. If it remains inactive for the next 30 days, it'll be automatically closed.

We understand everyone's busy, but if this issue is still important to you, please feel free to add a comment or make an update to keep it active.

Thanks for your understanding and cooperation!

github-actions[bot] avatar Feb 14 '25 07:02 github-actions[bot]

^

kodawah avatar Feb 14 '25 12:02 kodawah