1. As this is a 3rd party lib, you should ignore the composer.lock.
You should revert your change.

1. as composer.phar is not part of this project, you may not exclude it. If I can give you an advice, you should install composer.phar globally (see https://getcomposer.org/doc/00-intro.md#globally) or ignore all composer.phar like that: https://github.com/lyrixx/dotfiles/blob/master/.gitconfig#L42-L44