Qt Creator, how to push project into GitHub?
-
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?
-
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.
-
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.
-
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.
-
I never tried to work with it. I will read about it.
-
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.
-
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
@ -
Either use a ssh-agent to have that provide the passphrase for you or set an empty passphrase.
-
good I solve my problem