You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git checkout force deletes tracked directory containing untracked files #4125
The file tracked-dir/tracked-file should be deleted. tracked-dir and tracked-dir/untracked-file should remain present. This is what git checkout --force does.
Actual behavior
tracked-dir is deleted. This means that the tracked-dir/untracked-file was also deleted. Checkout force should keep all untracked files by default.
Activity