configure gerrit userid for repository
-
wrote on 3 Dec 2024, 14:05 last edited by Perdrix 12 Mar 2024, 14:07
I pulled the qt repos from github and typed something (which I now can't find the details of) to setup the user for pushing to the repos - I think it was a configure.bat option, but I can't find details ATM.
I think I set this up to use my email address when I should have used my gerrit username. How to change it without completely trashing the change to qtbase that I have committed?
Also do I need to use SSH to talk to gerrit or can I use https?
PS it's very hard to find a complete hold you by the hand guide to setting all of this stuff up.
Thanks
David -
Hello @Perdrix ,
Thanks for considering contributing to Qt
Here's the wiki instructions for setting up your gerrit account and local git settings : https://wiki.qt.io/Setting_up_Gerrit
As explained in them, you do indeed need to use SSH with your gerrit username, and git with your full name and gerrit email.Have you already commited something and want to modify the git user.name and git user.email? You can change fix your git config and then run
git commit --ammend --reset-author --no-edit
to update your latest commit. -
wrote on 3 Dec 2024, 16:24 last edited by
It is setting the username in my local copy of the repos that I am talking about. I've set that to my email not my gerrit userid - want to change that setting
-
Hi,
Your gerrit username is the email you used for your Qt Account. You can simply set it again using git config. Choose the local variant if you want to set it only for this repository.
-
there's 3 settings related to you as a user.
The ssh user for cloning and pushing in your ssh config is the Gerrit username (not email), visible in https://codereview.qt-project.org/settings/
Your git name should be your full name, and your git email the email you use for gerrit.
Which one are you trying to change and what did you try? Are you on Linux, Mac or Windows?
What did you do and what's not working? -
wrote on 4 Dec 2024, 11:19 last edited by
It is all working now - I had to do some finagling using git remote to correct the entries for gerrit to use my userid rather than the email.
6/6