Using Git in QtCreator
-
wrote on 27 Oct 2019, 13:26 last edited by
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.
-
wrote on 3 Nov 2019, 17:05 last edited by ModelTech 11 Mar 2019, 17:14
I have an ssh key added to the git...
The problem was that it was cloned using http instead of ssh. Now sorted :) -
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.
@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?
-
wrote on 28 Oct 2019, 08:02 last edited by
git push and git pull in a terminal works perfectly fine and as expected (i.e., it asks for a username and password)
-
git push and git pull in a terminal works perfectly fine and as expected (i.e., it asks for a username and password)
@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).
-
wrote on 3 Nov 2019, 17:05 last edited by ModelTech 11 Mar 2019, 17:14
I have an ssh key added to the git...
The problem was that it was cloned using http instead of ssh. Now sorted :)