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

Git plugin: The action and function of alias gpristine differ from those of previous versions #11483

Closed
FelixDai opened this issue Feb 8, 2023 · 1 comment
Labels
Bug Something isn't working

Comments

@FelixDai
Copy link

FelixDai commented Feb 8, 2023

Describe the bug

Alias gpristine was defined before:

alias gpristine='git reset --hard && git clean -dffx'

now:

alias gpristine='git reset --hard && git clean --force -dx'

Steps to reproduce

alias | grep gpristine

Expected behavior

gpristine should clean all untracked files and directories, making the local repo like the newly cloned one.
However, after the commit 3545419, this alias have only one --force clean option.

Git will refuse to modify untracked nested git repositories (directories with a .git subdirectory) unless a second -f is given.

Screenshots and recordings

image

OS / Linux distribution

Any

Zsh version

5.6

Oh My Zsh version

master

Terminal emulator

Any

If using WSL on Windows, which version of WSL

None

Additional context

No response

@FelixDai FelixDai added the Bug Something isn't working label Feb 8, 2023
@carlosala
Copy link
Member

Thanks for the point, good one! 😉

nbaronov pushed a commit to nbaronov/oh-my-zsh that referenced this issue Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants