Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Using Git in QtCreator
Forum Updated to NodeBB v4.3 + New Features

Using Git in QtCreator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 896 Views 1 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.
  • ModelTechM Offline
    ModelTechM Offline
    ModelTech
    wrote on last edited by
    #1

    I have reinstalled my PC and hence also reinstalled the latest version of QtCreator. I have always used the Git integration in QtCreator to my satisfaction. However, I do not manage to make it work without getting the following error (I have anonymized this a bit):

    14:19:08 Running in '... correct local location ...': /usr/bin/git pull
    fatal: could not read Username for '... git server ...': No such device or address
    The command "/usr/bin/git" terminated with exit code 1.
    

    I have no clue how to fix this error. Previously, I used to get a pop-up when pushing/pulling etc, where I would have to enter a user name and password. I tried to set the global and local git config user.name, but it does not seem to be checked in any way. Any ideas on how to fix this?

    I am using Ubuntu 18.04.3, QtCreator 4.10.1 (based on Qt 5.13.1, GCC 5.3.1) with git version 2.17.1.

    jsulmJ 1 Reply Last reply
    0
    • ModelTechM Offline
      ModelTechM Offline
      ModelTech
      wrote on last edited by ModelTech
      #5

      I have an ssh key added to the git...
      The problem was that it was cloned using http instead of ssh. Now sorted :)

      1 Reply Last reply
      2
      • ModelTechM ModelTech

        I have reinstalled my PC and hence also reinstalled the latest version of QtCreator. I have always used the Git integration in QtCreator to my satisfaction. However, I do not manage to make it work without getting the following error (I have anonymized this a bit):

        14:19:08 Running in '... correct local location ...': /usr/bin/git pull
        fatal: could not read Username for '... git server ...': No such device or address
        The command "/usr/bin/git" terminated with exit code 1.
        

        I have no clue how to fix this error. Previously, I used to get a pop-up when pushing/pulling etc, where I would have to enter a user name and password. I tried to set the global and local git config user.name, but it does not seem to be checked in any way. Any ideas on how to fix this?

        I am using Ubuntu 18.04.3, QtCreator 4.10.1 (based on Qt 5.13.1, GCC 5.3.1) with git version 2.17.1.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @ModelTech said in Using Git in QtCreator:

        Any ideas on how to fix this?

        Did you try to do the same directly in a terminal first? Does that work?

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

        1 Reply Last reply
        0
        • ModelTechM Offline
          ModelTechM Offline
          ModelTech
          wrote on last edited by
          #3

          git push and git pull in a terminal works perfectly fine and as expected (i.e., it asks for a username and password)

          jsulmJ 1 Reply Last reply
          0
          • ModelTechM ModelTech

            git push and git pull in a terminal works perfectly fine and as expected (i.e., it asks for a username and password)

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @ModelTech I don't have a solution for that problem, but personally prefer to upload my SSH public key to the server - then you don't have to enter your user name and password all the time (see https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key).

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

            1 Reply Last reply
            1
            • ModelTechM Offline
              ModelTechM Offline
              ModelTech
              wrote on last edited by ModelTech
              #5

              I have an ssh key added to the git...
              The problem was that it was cloned using http instead of ssh. Now sorted :)

              1 Reply Last reply
              2

              • Login

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