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.

Regarding unable to commit the changes in local repository.

Scheduled Pinned Locked Moved Unsolved General and Desktop
67 Posts 6 Posters 31.9k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 12 Sept 2016, 07:05 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
    • P Offline
      P Offline
      Pradeep Kumar
      wrote on 12 Sept 2016, 07:33 last edited by Pradeep Kumar 9 Dec 2016, 07:35
      #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.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 12 Sept 2016, 19:34 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
        • P Offline
          P Offline
          Pradeep Kumar
          wrote on 14 Sept 2016, 05:42 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.

          1 Reply Last reply
          0
          • P Pradeep Kumar
            30 Aug 2016, 10:25

            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?.

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 14 Sept 2016, 05:53 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
            • P Offline
              P Offline
              Pradeep Kumar
              wrote on 14 Sept 2016, 06:22 last edited by
              #39

              I used the command , and i am in project folder.

              Below are the contents.

              root@pthinks:~/qt5# git config --list
              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=pradeepk@pthinks.com
              user.name=Pradeep Kumar.M
              core.repositoryformatversion=0
              core.filemode=true
              core.bare=false
              core.logallrefupdates=true
              remote.origin.url=git://code.qt.io/qt/qt5.git
              remote.origin.fetch=+refs/heads/:refs/remotes/origin/
              branch.5.7.remote=origin
              branch.5.7.merge=refs/heads/5.7
              submodule.qt3d.url=git://code.qt.io/qt/qt3d.git
              submodule.qtactiveqt.url=git://code.qt.io/qt/qtactiveqt.git
              submodule.qtandroidextras.url=git://code.qt.io/qt/qtandroidextras.git
              submodule.qtbase.url=git://code.qt.io/qt/qtbase.git
              submodule.qtcanvas3d.url=git://code.qt.io/qt/qtcanvas3d.git
              submodule.qtcharts.url=git://code.qt.io/qt/qtcharts.git
              submodule.qtconnectivity.url=git://code.qt.io/qt/qtconnectivity.git
              submodule.qtdatavis3d.url=git://code.qt.io/qt/qtdatavis3d.git
              submodule.qtdeclarative.url=git://code.qt.io/qt/qtdeclarative.git
              submodule.qtdoc.url=git://code.qt.io/qt/qtdoc.git
              submodule.qtgamepad.url=git://code.qt.io/qt/qtgamepad
              submodule.qtgraphicaleffects.url=git://code.qt.io/qt/qtgraphicaleffects.git
              submodule.qtimageformats.url=git://code.qt.io/qt/qtimageformats.git
              submodule.qtlocation.url=git://code.qt.io/qt/qtlocation.git
              submodule.qtmacextras.url=git://code.qt.io/qt/qtmacextras.git
              submodule.qtmultimedia.url=git://code.qt.io/qt/qtmultimedia.git
              submodule.qtpurchasing.url=git://code.qt.io/qt/qtpurchasing.git
              submodule.qtqa.url=git://code.qt.io/qt/qtqa.git
              submodule.qtquickcontrols.url=git://code.qt.io/qt/qtquickcontrols.git
              submodule.qtquickcontrols2.url=git://code.qt.io/qt/qtquickcontrols2.git
              submodule.qtrepotools.url=git://code.qt.io/qt/qtrepotools.git
              submodule.qtscript.url=git://code.qt.io/qt/qtscript.git
              submodule.qtscxml.url=git://code.qt.io/qt/qtscxml
              submodule.qtsensors.url=git://code.qt.io/qt/qtsensors.git
              submodule.qtserialbus.url=git://code.qt.io/qt/qtserialbus.git
              submodule.qtserialport.url=git://code.qt.io/qt/qtserialport.git
              submodule.qtsvg.url=git://code.qt.io/qt/qtsvg.git
              submodule.qttools.url=git://code.qt.io/qt/qttools.git
              submodule.qttranslations.url=git://code.qt.io/qt/qttranslations.git
              submodule.qtvirtualkeyboard.url=git://code.qt.io/qt/qtvirtualkeyboard.git
              submodule.qtwayland.url=git://code.qt.io/qt/qtwayland.git
              submodule.qtwebchannel.url=git://code.qt.io/qt/qtwebchannel.git
              submodule.qtwebsockets.url=git://code.qt.io/qt/qtwebsockets.git
              submodule.qtwebview.url=git://code.qt.io/qt/qtwebview.git
              submodule.qtwinextras.url=git://code.qt.io/qt/qtwinextras.git
              submodule.qtx11extras.url=git://code.qt.io/qt/qtx11extras.git
              submodule.qtxmlpatterns.url=git://code.qt.io/qt/qtxmlpatterns.git
              commit.template=/root/qt5/.commit-template
              remote.gerrit.url=ssh://codereview.qt-project.org/qt/qt5
              remote.gerrit.fetch=+refs/heads/:refs/remotes/gerrit/
              user.name=Pradeep Kumar
              user.email=pradeepkm186@gmail.com

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pradeep Kumar
                wrote on 14 Sept 2016, 06:25 last edited by Pradeep Kumar
                #40

                Now i see , their is two user.name and user.email, beacuse of this is it causing the problem ?.Help is required how to make having one user.name and user.email. and config properly. Please guide further.

                J 1 Reply Last reply 14 Sept 2016, 06:58
                0
                • P Pradeep Kumar
                  14 Sept 2016, 06:25

                  Now i see , their is two user.name and user.email, beacuse of this is it causing the problem ?.Help is required how to make having one user.name and user.email. and config properly. Please guide further.

                  J Online
                  J Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on 14 Sept 2016, 06:58 last edited by
                  #41

                  @Pradeep-Kumar You can remove the duplicates from .git/config file manually using any editor

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • P Offline
                    P Offline
                    Pradeep Kumar
                    wrote on 14 Sept 2016, 07:02 last edited by Pradeep Kumar
                    #42

                    I tried to find two user.name and user.email in config file. but i found their is only one user.name and user.email. how to go further. how to remaove another.

                    I used the command git config --list outside the project folder.
                    This was the result.

                    root@pthinks:~# git config --list
                    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=pradeepk@pthinks.com
                    user.name=Pradeep Kumar.M

                    Is this impacting the .git/config file?.

                    J 1 Reply Last reply 14 Sept 2016, 07:20
                    0
                    • P Pradeep Kumar
                      14 Sept 2016, 07:02

                      I tried to find two user.name and user.email in config file. but i found their is only one user.name and user.email. how to go further. how to remaove another.

                      I used the command git config --list outside the project folder.
                      This was the result.

                      root@pthinks:~# git config --list
                      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=pradeepk@pthinks.com
                      user.name=Pradeep Kumar.M

                      Is this impacting the .git/config file?.

                      J Online
                      J Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on 14 Sept 2016, 07:20 last edited by
                      #43

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

                      git config --list

                      OK, I don't think there is a duplicate. You just have username/email in your global config (~/.gitconfig) and in your project (.git/config). In your project the local username/email are used.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      J 1 Reply Last reply 14 Sept 2016, 08:03
                      0
                      • P Offline
                        P Offline
                        Pradeep Kumar
                        wrote on 14 Sept 2016, 07:26 last edited by
                        #44

                        now i understand after you @jsulm replied.But still how to make Qt creator understand, the user.name and user.email to take it repectively, after when i press commit.

                        J 1 Reply Last reply 14 Sept 2016, 07:33
                        0
                        • P Pradeep Kumar
                          14 Sept 2016, 07:26

                          now i understand after you @jsulm replied.But still how to make Qt creator understand, the user.name and user.email to take it repectively, after when i press commit.

                          J Online
                          J Online
                          jsulm
                          Lifetime Qt Champion
                          wrote on 14 Sept 2016, 07:33 last edited by
                          #45

                          @Pradeep-Kumar It is not related to QtCreator, QtCreator just calls Git. Git uses username/email which is currently configured. If you configured them in your project then Git takes them from PROJECT_DIR/.git/config. If you did not then Git takes them from the global config file (~/.gitconfig). Check what is in PROJECT_DIR/.git/config and fix it if it is wrong.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • P Offline
                            P Offline
                            Pradeep Kumar
                            wrote on 14 Sept 2016, 07:35 last edited by
                            #46

                            root@pthinks:~/qt5/.git# cat config
                            [core]
                            repositoryformatversion = 0
                            filemode = true
                            bare = false
                            logallrefupdates = true
                            [remote "origin"]
                            url = git://code.qt.io/qt/qt5.git
                            fetch = +refs/heads/:refs/remotes/origin/
                            [branch "5.7"]
                            remote = origin
                            merge = refs/heads/5.7
                            [submodule "qt3d"]
                            url = git://code.qt.io/qt/qt3d.git
                            [submodule "qtactiveqt"]
                            url = git://code.qt.io/qt/qtactiveqt.git
                            [submodule "qtandroidextras"]
                            url = git://code.qt.io/qt/qtandroidextras.git
                            [submodule "qtbase"]
                            url = git://code.qt.io/qt/qtbase.git
                            [submodule "qtcanvas3d"]
                            url = git://code.qt.io/qt/qtcanvas3d.git
                            [submodule "qtcharts"]
                            url = git://code.qt.io/qt/qtcharts.git
                            [submodule "qtconnectivity"]
                            url = git://code.qt.io/qt/qtconnectivity.git
                            [submodule "qtdatavis3d"]
                            url = git://code.qt.io/qt/qtdatavis3d.git
                            [submodule "qtdeclarative"]
                            url = git://code.qt.io/qt/qtdeclarative.git
                            [submodule "qtdoc"]
                            url = git://code.qt.io/qt/qtdoc.git
                            [submodule "qtgamepad"]
                            url = git://code.qt.io/qt/qtgamepad
                            [submodule "qtgraphicaleffects"]
                            url = git://code.qt.io/qt/qtgraphicaleffects.git
                            [submodule "qtimageformats"]
                            url = git://code.qt.io/qt/qtimageformats.git
                            [submodule "qtlocation"]
                            url = git://code.qt.io/qt/qtlocation.git
                            [submodule "qtmacextras"]
                            url = git://code.qt.io/qt/qtmacextras.git
                            [submodule "qtmultimedia"]
                            url = git://code.qt.io/qt/qtmultimedia.git
                            [submodule "qtpurchasing"]
                            url = git://code.qt.io/qt/qtpurchasing.git
                            [submodule "qtqa"]
                            url = git://code.qt.io/qt/qtqa.git
                            [submodule "qtquickcontrols"]
                            url = git://code.qt.io/qt/qtquickcontrols.git
                            [submodule "qtquickcontrols2"]
                            url = git://code.qt.io/qt/qtquickcontrols2.git
                            [submodule "qtrepotools"]
                            url = git://code.qt.io/qt/qtrepotools.git
                            [submodule "qtscript"]
                            url = git://code.qt.io/qt/qtscript.git
                            [submodule "qtscxml"]
                            url = git://code.qt.io/qt/qtscxml
                            [submodule "qtsensors"]
                            url = git://code.qt.io/qt/qtsensors.git
                            [submodule "qtserialbus"]
                            url = git://code.qt.io/qt/qtserialbus.git
                            [submodule "qtserialport"]
                            url = git://code.qt.io/qt/qtserialport.git
                            [submodule "qtsvg"]
                            url = git://code.qt.io/qt/qtsvg.git
                            [submodule "qttools"]
                            url = git://code.qt.io/qt/qttools.git
                            [submodule "qttranslations"]
                            url = git://code.qt.io/qt/qttranslations.git
                            [submodule "qtvirtualkeyboard"]
                            url = git://code.qt.io/qt/qtvirtualkeyboard.git
                            [submodule "qtwayland"]
                            url = git://code.qt.io/qt/qtwayland.git
                            [submodule "qtwebchannel"]
                            url = git://code.qt.io/qt/qtwebchannel.git
                            [submodule "qtwebsockets"]
                            url = git://code.qt.io/qt/qtwebsockets.git
                            [submodule "qtwebview"]
                            url = git://code.qt.io/qt/qtwebview.git
                            [submodule "qtwinextras"]
                            url = git://code.qt.io/qt/qtwinextras.git
                            [submodule "qtx11extras"]
                            url = git://code.qt.io/qt/qtx11extras.git
                            [submodule "qtxmlpatterns"]
                            url = git://code.qt.io/qt/qtxmlpatterns.git
                            [commit]
                            template = /root/qt5/.commit-template
                            [remote "gerrit"]
                            url = ssh://codereview.qt-project.org/qt/qt5
                            fetch = +refs/heads/:refs/remotes/gerrit/
                            [user]
                            name = Pradeep Kumar.M
                            email = pradeepkm186@gmail.com

                            This is the information present in config file of project directory.

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              Pradeep Kumar
                              wrote on 14 Sept 2016, 07:37 last edited by
                              #47
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • J jsulm
                                14 Sept 2016, 07:20

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

                                git config --list

                                OK, I don't think there is a duplicate. You just have username/email in your global config (~/.gitconfig) and in your project (.git/config). In your project the local username/email are used.

                                J Offline
                                J Offline
                                JKSH
                                Moderators
                                wrote on 14 Sept 2016, 08:03 last edited by
                                #48

                                @jsulm said in Regarding unable to commit the changes in local repository.:

                                OK, I don't think there is a duplicate. You just have username/email in your global config (~/.gitconfig) and in your project (.git/config). In your project the local username/email are used.

                                @jsulm is right.

                                Run these commands separately:

                                git config --global --list
                                git config --local --list

                                Which username/email do you want to use?

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

                                [user]
                                name = Pradeep Kumar.M
                                email = pradeepkm186@gmail.com

                                If you don't want your local name/email, delete these 3 lines and save.

                                But still how to make Qt creator understand, the user.name and user.email to take it repectively, after when i press commit.

                                First of all, make sure you can use git outside of Qt Creator.

                                1. Can you commit from the command line? (Command is git commit)
                                2. Do you have a git GUI?

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

                                1 Reply Last reply
                                1
                                • P Offline
                                  P Offline
                                  Pradeep Kumar
                                  wrote on 14 Sept 2016, 09:15 last edited by
                                  #49

                                  I ran two commands separately
                                  Both gave me the user.email different.
                                  i have deleted locally and retained global username/email

                                  I used the following commands.

                                  1. git add filename.
                                    to add the file which was modified.

                                  2. git commit


                                  *** - Suspicious author real name (key "email")


                                  *** commit message:
                                  *** - 2nd line is not empty (key "log")


                                  *** See http://wiki.qt.io/Early_Warning_System for explanations.
                                  I got the following messages.

                                  And i am not using any gui git.

                                  1 Reply Last reply
                                  0
                                  • P Offline
                                    P Offline
                                    Pradeep Kumar
                                    wrote on 15 Sept 2016, 09:10 last edited by
                                    #50

                                    Even if i delete global name and email, i have used local name and email, but still i am getting previous error?.

                                    J 1 Reply Last reply 15 Sept 2016, 09:22
                                    0
                                    • P Pradeep Kumar
                                      15 Sept 2016, 09:10

                                      Even if i delete global name and email, i have used local name and email, but still i am getting previous error?.

                                      J Offline
                                      J Offline
                                      JKSH
                                      Moderators
                                      wrote on 15 Sept 2016, 09:22 last edited by
                                      #51

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

                                      Even if i delete global name and email, i have used local name and email, but still i am getting previous error?.

                                      *** - Suspicious author real name (key "email")

                                      Maybe it doesn't like the dot (.) in your name. What happens if you set your name to just "Pradeep Kumar"?

                                      *** commit message:
                                      *** - 2nd line is not empty (key "log")

                                      The system wants you to leave a blank line in your commit message.

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

                                      1 Reply Last reply
                                      0
                                      • P Offline
                                        P Offline
                                        Pradeep Kumar
                                        wrote on 15 Sept 2016, 09:44 last edited by
                                        #52

                                        I removed dot and kept second line empty.
                                        Same result as previous.!!!!!!

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 15 Sept 2016, 11:41 last edited by
                                          #53

                                          Did you reset the author in your commit ?

                                          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

                                          43/67

                                          14 Sept 2016, 07:20

                                          • Login

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