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. Qt Creator, how to push project into GitHub?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator, how to push project into GitHub?

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 3 Posters 11.2k 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.
  • Z Offline
    Z Offline
    zoonman
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zoonman
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zoonman
            wrote on last edited by
            #5

            I never tried to work with it. I will read about it.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                zoonman
                wrote on last edited by
                #7

                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
                @

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  Either use a ssh-agent to have that provide the passphrase for you or set an empty passphrase.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kangqf
                    wrote on last edited by
                    #9

                    good I solve my problem

                    1 Reply Last reply
                    0

                    • Login

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