Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Regarding unable to commit the changes in local repository.
Forum Updated to NodeBB v4.3 + New Features

Regarding unable to commit the changes in local repository.

Scheduled Pinned Locked Moved Unsolved General and Desktop
67 Posts 6 Posters 34.0k Views 4 Watching
  • 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.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on last edited by
    #19

    @SGaist

    Commit button is enabled , it was parsing i had to wait for a while.
    sorry was being impatient.

    Another query is i am getting the below error

    Cannot commit 1 file(s):
    *** Please tell me who you are.

    Run

    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"

    to set your account's default identity.
    Omit --global to set the identity only in this repository.

    fatal: unable to auto-detect email address (got 'pradeep@pthinks.(none)')

    Please provide further guidance?.
    Thanks,

    Pradeep Kumar
    Qt,QML Developer

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #20

      Did you forgot the extension after @pthinks ?

      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
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #21

        nope i have given gmail account

        git config --global user.name "pradeep_kumar.m"
        git config --global user.email "pradeepkm186@gmail.com"

        but still y it is not working?.
        its taking 'pradeep@pthinks.(none) by default. i have no clue from where.

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #22

          For the name it's not pradeep_kumar.m it Pradeep Kumar.M.

          As for the email, you have to reset the author of the commit since it was originally done with your other data.

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

          Pradeep KumarP 1 Reply Last reply
          1
          • SGaistS SGaist

            For the name it's not pradeep_kumar.m it Pradeep Kumar.M.

            As for the email, you have to reset the author of the commit since it was originally done with your other data.

            Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on last edited by
            #23

            @SGaist

            i will give Pradeep Kumar.M as username

            As for the email, you have to reset the author of the commit since it was originally done with your other data
            but second solution i didnt get it , will u please elaborate.

            Pradeep Kumar
            Qt,QML Developer

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #24

              Look at the git commitdocumentation for amend and reset-author

              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
              • Pradeep KumarP Offline
                Pradeep KumarP Offline
                Pradeep Kumar
                wrote on last edited by
                #25

                guys can u help me out, unknowingly using the command git rm has removed the files from qt source code. how can i get the removed files?.

                Pradeep Kumar
                Qt,QML Developer

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #26

                  See this post.

                  Searching for undo git rm would have gotten you the answer faster.

                  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
                  • Pradeep KumarP Offline
                    Pradeep KumarP Offline
                    Pradeep Kumar
                    wrote on last edited by
                    #27

                    I have two queries

                    1. regarding the Local Setup
                      Host codereview.qt-project.org
                      Port 29418
                      User <pradeep_kumar.m>
                      IdentityFile <~/.ssh/id_rsa_keynamehere>

                    is this the correct information in config file.?.

                    1. as i have gmail id for all 3 accounts, forum account, gerrit account,bugreports account, for corporate profile do we need to register with company id.?. is that giving me the problem. I am asking the question because i used

                    git config --global user.name "pradeep_kumar.m"
                    git config --global user.email "pradeepkm186@gmail.com"

                    for configuring , but getting the below error and the fatal error shown in bold.?.

                    Commit button is enabled , it was parsing i had to wait for a while.
                    sorry was being impatient.

                    Another query is i am getting the below error

                    Cannot commit 1 file(s):
                    *** Please tell me who you are.

                    Run

                    git config --global user.email "you@example.com"
                    git config --global user.name "Your Name"

                    to set your account's default identity.
                    Omit --global to set the identity only in this repository.

                    fatal: unable to auto-detect email address (got 'pradeep@pthinks.(none)')

                    Pradeep Kumar
                    Qt,QML Developer

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #28

                      Again: user.nameis not a username it is your name
                      You have to get the author of the commit correctly also.

                      AFAIU, your account is registered with your pthink email so use that one for your commits.

                      If you have several projects on your computer and that you are using different identities to handle them, then configure git locally by project.

                      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
                      • Pradeep KumarP Offline
                        Pradeep KumarP Offline
                        Pradeep Kumar
                        wrote on last edited by
                        #29

                        k @SGaist i will change the user name and use my company id Pthinks id,

                        and was the information correct in Config file?.

                        Pradeep Kumar
                        Qt,QML Developer

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #30

                          Which config file is it exactly ?

                          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
                          0
                          • Pradeep KumarP Offline
                            Pradeep KumarP Offline
                            Pradeep Kumar
                            wrote on last edited by
                            #31

                            config file where we will configure for Local setup

                            1. Regarding the Local Setup

                              Host codereview.qt-project.org
                              Port 29418
                              User <pradeep_kumar.m>
                              IdentityFile <~/.ssh/id_rsa_keynamehere>

                            where we will create config file in .ssh path.
                            The information in config file, Host, Port, User and IdentityFile isit correct?.

                            Pradeep Kumar
                            Qt,QML Developer

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #32

                              Remove the < and > characters and replace id_rsa_keynameherewith the correct id_rsa file name.

                              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
                              0
                              • Pradeep KumarP Offline
                                Pradeep KumarP Offline
                                Pradeep Kumar
                                wrote on last edited by
                                #33

                                I changed the config file

                                Host codereview.qt-project.org
                                Port 29418
                                User Pradeep Kumar.M
                                IdentityFile ~/.ssh/id_rsa

                                And if i try to commit again i am getting the below error.

                                Cannot commit 1 file(s):
                                *** Please tell me who you are.

                                Run

                                git config --global user.email "you@example.com"
                                git config --global user.name "Your Name"

                                to set your account's default identity.
                                Omit --global to set the identity only in this repository.

                                I changed the user name and still did i miss anything?.

                                Pradeep Kumar
                                Qt,QML Developer

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #34

                                  In that config file it's your username that you should provide.

                                  For the user.name it's your name as in your identity card name.

                                  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
                                  0
                                  • Pradeep KumarP Offline
                                    Pradeep KumarP Offline
                                    Pradeep Kumar
                                    wrote on last edited by Pradeep Kumar
                                    #35

                                    Its the same name Pradeep Kumar.M

                                    can u tell me how to configure the git step by step. so it will help me , i do know what mistake i did and how to trace it?. solution will help me.

                                    Pradeep Kumar
                                    Qt,QML Developer

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #36

                                      You have detailed guides in the wiki:

                                      • Setting up Gerrit
                                      • Gerrit Introduction
                                      • Git Introduction

                                      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
                                      • Pradeep KumarP Offline
                                        Pradeep KumarP Offline
                                        Pradeep Kumar
                                        wrote on last edited by Pradeep Kumar
                                        #37

                                        Hi,

                                        It will be the repeatation, but still provide the information where i missed, sorry for asking again and again, the same questions. But i am not getting , in my previous post under this topic i have provided the steps which i followed. is it correct?. Because one step is pending to commit, i am trying my best to understand what is wrong. As you @SGaist told i will once again follow and repeat the procedure.

                                        Pradeep Kumar
                                        Qt,QML Developer

                                        1 Reply Last reply
                                        0
                                        • Pradeep KumarP Pradeep Kumar

                                          I used the command to check git config --list, below was the contents.

                                          core.autocrlf=input
                                          core.pager=less -FRSX
                                          status.showuntrackedfiles=all
                                          push.default=tracking
                                          rerere.enabled=true
                                          rerere.autoupdate=true
                                          rebase.stat=true
                                          color.ui=auto
                                          alias.di=diff
                                          alias.ci=commit
                                          alias.co=checkout
                                          alias.ann=blame
                                          alias.st=status
                                          user.email=pradeepkm186@gmail.com
                                          user.name=pradeep_kumar.m

                                          Is the configuration wrong?.

                                          JKSHJ Offline
                                          JKSHJ Offline
                                          JKSH
                                          Moderators
                                          wrote on last edited by
                                          #38

                                          @Pradeep-Kumar said in Regarding unable to commit the changes in local repository.:

                                          I used the command to check git config --list, below was the contents.

                                          Can you call this command again and post the latest contents? (Make sure you are in your project folder when you call the command)

                                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                          1 Reply Last reply
                                          0

                                          • Login

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