Re: Wrong author name in git commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't understand what is going on...
That's what I have in global git variables :
# git config --global -l
user.name=Romain Forlot
user.email=rforlot@xxxxxxxxx
color.diff=auto
color.status=auto
color.branch=auto

And that's my git config file in the cloned repository :
# cat .git/config
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[user]
	name = FORLOT Romain
	email = rforlot@xxxxxxxxx
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = ssh://git.fedorahosted.org/git/docs/user-guide.git
[branch "master"]
	remote = origin
	merge = refs/heads/master
[branch "f16"]
	remote = origin
	merge = refs/heads/f16

# cat ~/.ssh/config
Host *.fedorahosted.org fedorapeople.org
User rforlot

But when I'm commiting, it always show me wrong user except when I'm
using 'git commit -a --author "..."' method. At least now, I do a good
commiting, I think, by following guide to using git in docs project :
http://fedoraproject.org/wiki/Docs_Project_work_using_git
And I doesn't see my commit into git repository.

I have configured my ssh public key into my FAS account and is
corresponding with that of user I'm using to edit files and commiting.
I do cloning of repository by using ssh link which ask me my
passphrase. I enter my passphrase, git do cloning fine.
Then I switch to F16 branche, do my changes and test my commit. But
see no changes into :
http://git.fedorahosted.org/git/?p=docs/user-guide.git;a=shortlog;h=refs/heads/f16

Why so much hate ? :)

2012/3/15 Romain Forlot <rforlot@xxxxxxxxx>:
> Nice, thanks you very much. It can be very useful for later.
>
> 2012/3/15 Neil Horman <nhorman@xxxxxxxxxx>:
>> On Thu, Mar 15, 2012 at 08:49:07AM +0100, Romain Forlot wrote:
>>> I have configured git after the wrong commit. The problem is more on
>>> the existing commit. But it appears that I miss cloning git
>>> repository. So, commit isn't go online and everything is fine.
>>>
>> git commit --amend --author="..."
>>
>> That will let you edit the HEAD commit's message and update the author
>> name/email
>>
>> if you want to change commits farther back:
>>
>> 1) git rebase -i <first commit to fix>^
>> 2)(1) will pop up an editor, between each picked commit, insert this line:
>>   x git commit --amend --autor"..."
>>   see the git-rebase man page for details
>> 3) close the editor
>> 4) Save/exit after each commit pops up.
>>
>> Neil
>>
>>> Sorry for inconvenience.
>>>
>>> 2012/3/15 Gerard Ryan <galileo@xxxxxxxxxxxxxxxxx>
>>> >
>>> > On Wed 14 Mar 2012 10:53:00 PM GMT, E Deon Lackey wrote:
>>> >
>>> > > Yes, there is a way to change that. You can do...
>>> > > $ git config --global user.name "Romain Forlot "
>>> > > $ git config --global user.email "rforlot@xxxxxxxxx"
>>> > >
>>> > > ...to reset your email and username preferences. That will always do
>>> > > 'git commit' as "Romain Forlot <rforlot@xxxxxxxxx>."
>>> > >
>>> > > You can also do....
>>> > >
>>> > > $ git commit -a -m "message" --author Romain Forlot <rforlot@xxxxxxxxx>
>>> > >
>>> > > --author overrides whatever the config setting is.
>>> > >
>>> > > HTH,
>>> > > Deon
>>> > >
>>> > > P.S. Those only apply to new commits; I don't know of a way to edit an
>>> > > existing commit.
>>> > >
>>> > >
>>> > > On 3/14/2012 5:36 PM, Romain Forlot wrote:
>>> > >> Hi,
>>> > >>
>>> > >> I do my first commit on user guide doc but I do not have configured
>>> > >> git to use a specific name and mail address. So, I see that my git
>>> > >> commit using 'git log' showing Claneys Skyne
>>> > >> "Author: Claneys Skyne <claneys.skyne@xxxxxxxxx
>>> > >> <mailto:claneys.skyne@xxxxxxxxx>>"
>>> > >> instead of:
>>> > >> "Author: Romain Forlot <rforlot@xxxxxxxxx <mailto:rforlot@xxxxxxxxx>>"
>>> > >>
>>> > >> Is it possible to change that ?
>>> > >>
>>> > >> Thanks.
>>> > >> --
>>> > >> *Romain Forlot*
>>> > >>
>>> > >> pub 4096R/862907E5 2011-05-26
>>> > >> Key fingerprint = 4549 A7CA 17DC D0AA 0FE0 7953 E6A8 A0C8 8629 07E5
>>> > >> uid Romain Forlot <rforlot@xxxxxxxxx <mailto:rforlot@xxxxxxxxx>>
>>> > >> sub 4096R/153E34C2 2011-05-26
>>> > >>
>>> > >>
>>> > >>
>>> > >
>>> > >
>>> > >
>>> > >
>>> >
>>> >
>>> > Note: I don't know too much about git, but I think this should work. I'd
>>> > suggest maybe waiting until someone more experienced verifies what I say
>>> > here before trying it!
>>> >
>>> > I think if you do what Deon has suggested, then do the following to go
>>> > back to before you made the commit:
>>> >
>>> > $ git reset --soft HEAD~1
>>> >
>>> > Then it should be in the state you left it right before you made the
>>> > commit (i.e. with all your changes staged, just not committed). Doing
>>> > the same git commit command again now (with your config updated), should
>>> > do what you want.
>>> >
>>> > --
>>> > Gerard Ryan :: galileo@xxxxxxxxxxxxxxxxx :: http://gerard.ryan.lt/blog
>>> > PGP Fingerprint: AA11 A666 C98E B6D8 231C 11ED 6EDC 7E4A 62BC 4A15
>>> >
>>>
>>> --
>>> *Romain Forlot*
>>>
>>> pub 4096R/862907E5 2011-05-26
>>> Key fingerprint = 4549 A7CA 17DC D0AA 0FE0 7953 E6A8 A0C8 8629 07E5
>>> uid Romain Forlot <rforlot@xxxxxxxxx>
>>> sub 4096R/153E34C2 2011-05-26
>>> --
>>> docs mailing list
>>> docs@xxxxxxxxxxxxxxxxxxxxxxx
>>> To unsubscribe:
>>> https://admin.fedoraproject.org/mailman/listinfo/docs
>> --
>> docs mailing list
>> docs@xxxxxxxxxxxxxxxxxxxxxxx
>> To unsubscribe:
>> https://admin.fedoraproject.org/mailman/listinfo/docs
>
>
>
> --
> *Romain Forlot*
>
> pub 4096R/862907E5 2011-05-26
> Key fingerprint = 4549 A7CA 17DC D0AA 0FE0 7953 E6A8 A0C8 8629 07E5
> uid Romain Forlot <rforlot@xxxxxxxxx>
> sub 4096R/153E34C2 2011-05-26



-- 
*Romain Forlot*

pub 4096R/862907E5 2011-05-26
Key fingerprint = 4549 A7CA 17DC D0AA 0FE0 7953 E6A8 A0C8 8629 07E5
uid Romain Forlot <rforlot@xxxxxxxxx>
sub 4096R/153E34C2 2011-05-26
-- 
docs mailing list
docs@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/docs



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux