you are using option x in git clean command. In the manual, the option x
Don’t use the standard ignore rules read from .gitignore (per
directory) and $GIT_DIR/info/exclude, but do still use the ignore rules
given with -e options. This allows removing all untracked
files, including build products. This can be used (possibly in
conjunction with git reset) to create a pristine working directory to test
a clean build.
So, if you don't want to delete files in .gitignore, just don't use the
option x, only the options f and d: git clean -fd
William Seiti Mizuta
Caelum | Ensino e Inovação
On Tue, Sep 3, 2013 at 10:33 AM, dexter ietf <dexter.i...@gmail.com> wrote:
> when i run git clean -xfd, git deletes my tags file.
> i have the tag file listed in gitignore, but how do
> i tell git not to remove the tags file.
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.