configure gerrit userid for repository
-
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. -
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?