![]() However, when trying to configure Qt Creator, I cannot access the remote repository. The PATH variable is set properly, everything works outside Qt. I created a repository on bitbucket, following the bitbucket 101 tutorial and everything runs smoothly when I use Git Bash, or even Git GUI. Prof.I'm trying to use Git for Windows together with QT Creator 2.8, and failing miserably. Have your lab partner also do a checkout. If you can compile, you are done configuring the repo. If the Checkout window eventually states it succeeded, pick the compile mechanism.Path : where-ever you would like to place the repository. For the location window, set the following options:.Under projects choose "Import Project".Start qtcreator and click "+ New Project".Pfaffmaj$ git commit -m "adding qtcreator project" " to discard changes in working directory) # not be added to the repository and the. rw-r-r- 1 pfaffmaj staff 41 Jan 29 23:38 qtrepo.pro gitignoreĭrwxr-xr-x 4 pfaffmaj staff 136 Jan 29 23:38 lab Previously created "qtrepo", and the other is where qtcreator is putting allīuild-qtrepo-Desktop_Qt_5_7_1_clang_64bit-Debug qtrepoĭrwxr-xr-x 7 pfaffmaj staff 238 Jan 29 23:44. Now go back to the cloned repository and do something like the following.įirst notice the two directories in the original directory, one is the.Also note, the dot at the front indicates that this is a hidden file, thus to see it with the list command use the following form: ls -a. If your system places it somewhere else, just move it. Be sure this is saved in the top directory of your repository.Preserve the file name, including the preceding dot (the OS will want to change it).You should do this with a right click and Download the following file into your cloned repository:.In the end you will have the following.Here you do not need to perform anything other than clicking "Done".Continue through both the qmake screen and pick the desktop configuration.Later you will remove it, because this is just an experiment. In this window, add the name of the subproject.In this window, pick "Non-QT Project" and "Plain C++ Project".You will note that qtcreator is Git aware, just click "Done and Add Subproject ".Also, the field "Create in" is the directory where you put the repo. In the example, Name is qtrepo, which is what you called it during the clone process. In this window, carefully add the name of the directory where your repository isĪnd the name of the repository you are using.From here Select "Other Project > Subdirs Project > Choose".Now open QtCreator on the account where you performed the clone and select "File > New File or.Warning: You appear to have cloned an empty repository. Also when installing, be sure to use the "Git Bash only" option. More simple bash client than what you have been using, but is more respectful of the win file Machine, you should get a copy of Git Bash, which is a Go back to one of your personal accounts and clone the repository.Use a name similar to that above to avoid destroying your previous repository. Initialized empty shared Git repository in /home/lab_1_11/qtrepo_m1_m2.git/ Create a new repository on your lab ~]$ git init -bare -shared qtrepo_m1_m2.git.Page is a little dated, if something does not sound correct, please ask and I You will want to rework these parts to start with a clean slate. You may have already completed parts of this lab in the previous lab, but It, insert a qtcreator project in the clone, and then push the new code. Get this to work right you need to create a new repository on your lab account, clone This is a short tutorial to set up a git repository with a QtCreator project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |