# Re: error commiting in Git

5 messages from 2010-07-31 to 2010-07-31. Participants: Daniel França, Jonathan Nieder.
Thread: https://gitlist.dev/t/24595

## Daniel França, 2010-07-31 22:25

Subject: Re: error commiting in Git
Message-ID: <AANLkTi=n-J5rMOz0pkcxQZ7VgGs_EtXpotO=wZoDyz=C@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3Dn-J5rMOz0pkcxQZ7VgGs_EtXpotO%3DwZoDyz%3DC%40mail.gmail.com
In-Reply-To: <AANLkTimqWF7gZHAXFOmz0URdDTF=CfMmjJrBwmFavUkK@mail.gmail.com>

```
Hi,
I recently migrate to Mac OS from Linux.
and now when I try to commito some file of my git project I get the
following error:
find: illegal option -- n
find: illegal option -- a
find: illegal option -- m
find: illegal option -- e
it seems to me that git calls find in a way that mac os doesn't support.
any idea how can I solve that?


Best Regards,
Daniel França

```

## Jonathan Nieder, 2010-07-31 22:33

Subject: Re: error commiting in Git
Message-ID: <20100731223356.GB7490@burratino>
URL: https://gitlist.dev/e/20100731223356.GB7490%40burratino
In-Reply-To: <AANLkTi=n-J5rMOz0pkcxQZ7VgGs_EtXpotO=wZoDyz=C@mail.gmail.com>

```
Hi Daniel,

Daniel França wrote:

> now when I try to commito some file of my git project I get the
> following error:
> find: illegal option -- n
> find: illegal option -- a
> find: illegal option -- m
> find: illegal option -- e

Could you give the git version you use, the command you ran, and the
exact response?  “git commit” is not a shell script and does not run
find, so it is hard to guess what is going on from the extract you
gave.

Jonathan

```

## Daniel França, 2010-07-31 22:38

Subject: Re: error commiting in Git
Message-ID: <AANLkTi=ExhKbUC4yqmPudD_=SpGxxV6MUm-bhaycSJOu@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DExhKbUC4yqmPudD_%3DSpGxxV6MUm-bhaycSJOu%40mail.gmail.com
In-Reply-To: <20100731223356.GB7490@burratino>

```
Thanks for the fast reply
git version 1.7.2


git commit -a -m 'Teste'

Even when I try to commit using SmartGit or GitX, the same error of
commandline happen

2010/7/31 Jonathan Nieder <jrnieder@gmail.com>:
> Hi Daniel,
>
> Daniel França wrote:
>
>> now when I try to commito some file of my git project I get the
>> following error:
>> find: illegal option -- n
>> find: illegal option -- a
>> find: illegal option -- m
>> find: illegal option -- e
>
> Could you give the git version you use, the command you ran, and the
> exact response?  “git commit” is not a shell script and does not run
> find, so it is hard to guess what is going on from the extract you
> gave.
>
> Jonathan
>

```

## Jonathan Nieder, 2010-07-31 22:43

Subject: Re: error commiting in Git
Message-ID: <20100731224351.GB7678@burratino>
URL: https://gitlist.dev/e/20100731224351.GB7678%40burratino
In-Reply-To: <AANLkTi=ExhKbUC4yqmPudD_=SpGxxV6MUm-bhaycSJOu@mail.gmail.com>

```
Daniel França wrote:
> 2010/7/31 Daniel França <daniel.franca@gmail.com>:

>> git commit -a -m 'Teste'
[...]
> the output:
> find: illegal option -- n
> find: illegal option -- a
> find: illegal option -- m
> find: illegal option -- e
> find: *.pyc: No such file or directory

Ah, you have a pre- or post-commit hook.  Take a look at
.git/hooks and you may find something interesting. :)

Good luck,
Jonathan

```

## Daniel França, 2010-07-31 22:50

Subject: Re: error commiting in Git
Message-ID: <AANLkTimmgU1SJaWZuDmSfuU05yBsUzvcnd9i4c7p2d5+@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTimmgU1SJaWZuDmSfuU05yBsUzvcnd9i4c7p2d5%2B%40mail.gmail.com
In-Reply-To: <20100731224351.GB7678@burratino>

```
thanks, I'll look that, I've the stupid habit of click reply instead
of reply to all :P

2010/7/31 Jonathan Nieder <jrnieder@gmail.com>:
> Daniel França wrote:
>> 2010/7/31 Daniel França <daniel.franca@gmail.com>:
>
>>> git commit -a -m 'Teste'
> [...]
>> the output:
>> find: illegal option -- n
>> find: illegal option -- a
>> find: illegal option -- m
>> find: illegal option -- e
>> find: *.pyc: No such file or directory
>
> Ah, you have a pre- or post-commit hook.  Take a look at
> .git/hooks and you may find something interesting. :)
>
> Good luck,
> Jonathan
>

```
