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. [SOLVED] How to properly upload source code to GitHub/ transfer code between computers?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to properly upload source code to GitHub/ transfer code between computers?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 4.7k 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.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    Hello,

    How can I upload my source code to GitHub in a way where developers can easily download it and run it through their Qt creators? Is there a special way to do it for Qt?

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      It works the same way for any kind of files and repositories. No Qt-specific stuff is required. Just create an account on GitHub, add your SSH key, create a repo on github, and push your local repository to it - GitHub will give you all the necessary instructions.

      (Z(:^

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Just remember never to include any .pro.user files, build Makefiles, or build objects to the repository - it should be clean, just the source code.

        (Z(:^

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nicky j
          wrote on last edited by
          #4

          Why should I not include the .pro file? Isn't that necessary to compile the program?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andreyc
            wrote on last edited by
            #5

            sierdzio was saying about .pro.user files. These files are generated by qtcreator for each .pro file and keep the user specific setting for the project .

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nicky j
              wrote on last edited by
              #6

              ok the .pro.user file is different than the .pro file that i occasionally need to modify? the .pro file should be uploaded but the .pro.user should not?

              out of curiosity, where are the .pro.user files located?

              Sorry for the dumb questions, I'm new to using GitHub and uploading a Qt project :/

              Thanks for all your help!

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andreyc
                wrote on last edited by
                #7

                .pro file contains info about your project.
                .pro.user contains settings for your project on a particular computer.

                The settings includes Qt versions, directory locations, etc.

                .pro.user file is modified by qtcreator when you modify settings in the "Projects" tab.

                .pro.user is located in the same directory as .pro

                [EDIT]: You need to submit .pro file.

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

                  The pro.user file is located in the same folder as the pro file. It's generated by Qt Creator. The most simple way to avoid committing/pushing unwanted files is to add a .gitignore file (the dot is mandatory) with

                  @
                  *.pro.user
                  @

                  inside so you won't have to worry about that file.

                  IIRC, GitHub offers to generate that file for you so it will included sensible defaults.

                  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
                  • N Offline
                    N Offline
                    nicky j
                    wrote on last edited by
                    #9

                    Thank you for the help!

                    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