Not able to use Git in QtCreator (solved)



  • <QtCreator GitHub configuration >
    Tools> options> version Control>git

    <TO PUSH CODE INTO GITHUB > NOT WORKING
    Went into Tools> Git> Remote Repository> Push
    OpenSSH username appear
    Password appear
    Error: failed to push some refs to "https//,,"
    hint: updates were rejected because remote contains work that you do
    hint: this is usually caused by another repository pushing
    hint: you may want to first integrate the remote changes
    The command "/usr/bin/git" terminated with exit code 1

    I did GitHub Quick Setup as per instructed on terminal
    and my folder to upload is in /home/git.
    I thought everything is correct.

    <TO PULL CODE FROM GITHUB > WORKING

    1. Click New Project
    2. Choose a template: import Project
    3. Git Repository Clone

    Repository
    Clone URL ->https://github.com/houmingc
    Working copy
    Path: /home/git



  • A) created an account in Github
    B) put my files in local machine /home/git2/basiclayouts
    C) Quick Setup

    In Terminal, i commit successfully, but no code in github? Why
    To https://github.com/alvingarlic/basicLayouts.git

    • [new branch] master -> master
      Branch master set up to track remote branch master from origin.
      Everything up-to-date

    On Terminal, i got no problem uploading my project



  • Hi,

    does your GitHub repository exist when you push on it the first time?



  • mcosta thanks

    Clipping the link go into github homepage, this should constitute existing?
    What is the command to upload a qt project folder?


  • Lifetime Qt Champion

    Hi,

    What version of git are you currently using ? And which version of Qt Creator ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.