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 Update on Monday, May 27th 2025

Using Git in QtCreator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 883 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.
  • M Offline
    M Offline
    ModelTech
    wrote on 27 Oct 2019, 13:26 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.

    J 1 Reply Last reply 28 Oct 2019, 06:20
    0
    • M Offline
      M Offline
      ModelTech
      wrote on 3 Nov 2019, 17:05 last edited by ModelTech 11 Mar 2019, 17:14
      #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
      • M ModelTech
        27 Oct 2019, 13:26

        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.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 28 Oct 2019, 06:20 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
        • M Offline
          M Offline
          ModelTech
          wrote on 28 Oct 2019, 08:02 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)

          J 1 Reply Last reply 28 Oct 2019, 08:06
          0
          • M ModelTech
            28 Oct 2019, 08:02

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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 28 Oct 2019, 08:06 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
            • M Offline
              M Offline
              ModelTech
              wrote on 3 Nov 2019, 17:05 last edited by ModelTech 11 Mar 2019, 17:14
              #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