Qt Creator, how to push project into GitHub?
-
wrote on 23 Feb 2013, 16:47 last edited by
I have Win XP SP3, git version 1.7.9.msysgit.0.
I can push from command line into GitHub in regular order.
But in Qt Creator I cannot do it, because I have following messages:
@
20:27 Executing in D:\office\qt\cuteterm: C:\Program Files\Git\cmd\git.cmd push
usage: git credential-cache [options]--exit tell a running daemon to exit --reject reject a cached credential --timeout <n> number of seconds to cache credentials --socket <path> path of cache-daemon socket --chain <helper> use <helper> to get non-cached credentials --username <name> an existing username --description <desc> human-readable description of the credential --unique <token> a unique context for the credential
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh.exe": Username for 'https://github.com': : no address associated with name
The command 'C:\Program Files\Git\cmd\git.cmd' terminated with exit code 128
@How to configure Qt Creator properly?
-
wrote on 24 Feb 2013, 10:03 last edited by
How do you push on the command line? Do you push to the same remote? https://github.com/ could very well be a read-only url.
-
wrote on 24 Feb 2013, 10:13 last edited by
Yes. I set up remote, as it described "here":https://help.github.com/articles/adding-a-remote
@
D:\office\qt\cuteterm>git remote -v
origin https://github.com/zoonman/cuteterm.git (fetch)
origin https://github.com/zoonman/cuteterm.git (push)
@I suppose, I cannot push because regular push is interactive and require entering username and password.
-
wrote on 24 Feb 2013, 10:22 last edited by
Creator does not support entering login/passwords, sorry.
Can you use SSH? If you register a public key with github? That does work for me.
-
wrote on 24 Feb 2013, 10:25 last edited by
I never tried to work with it. I will read about it.
-
wrote on 24 Feb 2013, 15:43 last edited by
Give it a try: Git over SSH is supposed to be more efficient than git over HTTP, so it is the preferred option. And it is more convenient since you do not have to provide passwords all the time.
-
wrote on 24 Feb 2013, 17:50 last edited by
I created Publickeys and setup it in GitHub interface.
But it still ask me to enter passphrase every time when I try push to remote.Example:
@
d:\office\qt\cuteterm>git push
Enter passphrase for key '/c/Documents and Settings/phil/.ssh/id_rsa':
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 330 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To git@github.com:zoonman/cuteterm.git
4125a3f..8f1900a master -> master
@ -
wrote on 26 Feb 2013, 12:29 last edited by
Either use a ssh-agent to have that provide the passphrase for you or set an empty passphrase.
-
wrote on 15 Feb 2014, 09:17 last edited by
good I solve my problem