Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. configure gerrit userid for repository
QtWS25 Last Chance

configure gerrit userid for repository

Scheduled Pinned Locked Moved Unsolved Qt Contribution
6 Posts 3 Posters 483 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Perdrix
    wrote on 3 Dec 2024, 14:05 last edited by Perdrix 12 Mar 2024, 14:07
    #1

    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

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GrecKo
      Qt Champions 2018
      wrote on 3 Dec 2024, 15:02 last edited by
      #2

      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.

      1 Reply Last reply
      3
      • P Offline
        P Offline
        Perdrix
        wrote on 3 Dec 2024, 16:24 last edited by
        #3

        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

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Dec 2024, 19:18 last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • G Offline
            G Offline
            GrecKo
            Qt Champions 2018
            wrote on 4 Dec 2024, 11:15 last edited by
            #5

            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?

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Perdrix
              wrote on 4 Dec 2024, 11:19 last edited by
              #6

              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.

              1 Reply Last reply
              0

              1/6

              3 Dec 2024, 14:05

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved