Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Not able to use Git in QtCreator (solved)
QtWS25 Last Chance

Not able to use Git in QtCreator (solved)

Scheduled Pinned Locked Moved General and Desktop
how to setup an
5 Posts 3 Posters 3.5k Views
  • 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by houmingc
    #1

    <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.

    • echo "# PurpleTrain" >> README.md
      git init
      git add README.md
      get commit -m "First commit"
      git remote add origin https://github.com/houmingc/PurpleTrain.git
      git push -u origin master
      git config --global --edit

    <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

    1 Reply Last reply
    0
    • H Offline
      H Offline
      houmingc
      wrote on last edited by houmingc
      #2

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

      • echo "# basicLayouts" >> README.md
        git init
        git add README.md
        git commit -m "first commit"
        git remote add origin https://github.com/alvingarlic/basicLayouts.git
        git push -u origin master
        D) Open QtCreator, Tools, Git, Remote Repository, push, username, password.

      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

      • a) git remote add gitalvin https://github.com/alvingarlic/basicLayouts.git
        b) git remote->working
        c) git push -u gitalvin master
      1 Reply Last reply
      0
      • M Offline
        M Offline
        mcosta
        wrote on last edited by
        #3

        Hi,

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

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        H 1 Reply Last reply
        0
        • M mcosta

          Hi,

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

          H Offline
          H Offline
          houmingc
          wrote on last edited by
          #4

          mcosta thanks

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

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

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

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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