[Freemint-list] Where is my commit?

Vincent Rivière vincent.riviere at freesbee.fr
Sat Jan 28 18:47:59 MSK 2017


On 28/01/2017 à 15:12, Helmut Karlowski wrote:
>> -F is the message file, not the file to commit
>
> The -F did what I intended.

Your command line was:
$git commit -F ~/commits/my-freemint/xaaes/src.km/example.cnf example.cnf
[helmut-enhancements 6ce7a64] add description for standard_font_point
   1 file changed, 7 insertions(+)

It is really strange, I have never seen such thing. Anyway.

Where does your commit message "add description for standard_font_point" 
comes from? I don't see it on the command line. The purpose of -F is used to 
specify that message from the contents of an existing file.
Did you first write that message to 
~/commits/my-freemint/xaaes/src.km/example.cnf? That would really be 
strange, but by seeing the results, I can't imagine another cause...

> Why did it work without "add" then, and what are the consequences?

Regardless of -F and its option, you wrote:
git commit example.cnf

I didn't know that syntax. It is equivalent to:
git add example.cnf
git commit

For this last point, there is no mystery.

NB: To see the documentation of "commit", use:
git help commit
This is exactly what I did to check your syntax.

>> git config --global user.name "Helmut Karlowski"
>> git config --global user.email "helmut.karlowski at ish.de"
>
> Obviously I already had done that long ago, that's the reason for the
> strange name in the log. How can I change only that name?

git takes its default from somewhere (probably your /etc/passwd).

To change that information for your future commits, just execute the above 
commands, once.

-- 
Vincent Rivière


More information about the Freemint-list mailing list