Ruslan Polupan
Ruslan PolupanJuly 11, 2019, 4:26 a.m.

IMpos project. Part 002. Project creation. Creating a GitHub repository. Importing a project.

I mainly work on SuSE Linux. Currently using openSUSE Tumbleweed, Qt 5.13.0. Users will use Windows. Therefore, I use GitHub to import projects when building for other platforms, as well as to work on it both at work and from home.


Create a new project Qt Widgets Application

Here we turn on version control and select Git.

The project has been created. We will not collect it yet. Create a new repository .

In the Quick setup section, select SSH.

Go to the folder with the created project and execute the commands from the section create a new repository on the command line. Change line 3 to git add * so that not only the README.md file but all project files are added to the repository.

echo "# iMpos" >> README.md
git init
git add *
git commit -m "first commit"
git remote add origin git@github.com:rust3128/iMpos.git
git push -u origin master

The project is on GitHub.
To work from Qt Creator, use the Tools->Git Menu.

Import project

Select New Project->Import Project->Git Clone.

We go to the repository.

Click Clone or download, copy the link to the project https://github.com/rust3128/iMpos.git

Paste the link into the Storage field. Checking the path to the project.

The project has been imported.

You can work from different places and platforms.

I raised Win10 on VirtualBox and there I test builds under Windows.

We recommend hosting TIMEWEB
We recommend hosting TIMEWEB
Stable hosting, on which the social network EVILEG is located. For projects on Django we recommend VDS hosting.

Do you like it? Share on social networks!

Evgenii Legotckoi
  • July 11, 2019, 4:31 a.m.

Интересная инофрмация по импорту проекта из Git-репозитория в Qt Creator. Но вот интересный вопрос. Сколько вообще людей использует в Qt Creator импорт сразу из Git-репозитория? На моей памяти вы первый.

Ruslan Polupan
  • July 11, 2019, 4:39 a.m.

Это было одним из первых действий который я попробовал когда разбирался с Git.

IscanderChe
  • July 18, 2019, 12:49 p.m.

Что-то не получилось по вашей инструкции с GitHub сладить.

На этой строке ошибка доступа к репозиторию случилась:

git push -u origin master

Что не так?

Ruslan Polupan
  • July 19, 2019, 2:55 a.m.

А какая конкретно ошибка была?
И вы случано при создании репозитория не инициализировали его?

IscanderChe
  • July 19, 2019, 10:40 a.m.

Нет, не инициализировал, галка соответствующая была снята.

Вот что пишет: "Warning: Permanently added the RSA host key for IP address '140.82.118.3' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.".

Я кое-что вспомнил. Когда пробовал работать GitHub, я вроде прописывал в операционке ключ доступа. Может, дело этом?

Ruslan Polupan
  • July 19, 2019, 12:48 p.m.

Если систему переставлял, IP другое то надо ключ менять.
Вот статья.

IscanderChe
  • July 19, 2019, 12:55 p.m.

У меня ошибка случилась ещё до Qt Creator, я ж написал. На этапе загрузки проекта из командной строки на GitHub.

Ruslan Polupan
  • July 19, 2019, 1:43 p.m.

Ключ не верный или не действительный. сформируй новый и добавь на GitHub
В статье описапно как сделать.

IscanderChe
  • July 19, 2019, 3:03 p.m.

В какой статье? Какой ключ? Как добавить? Ничего не понятно. :) Если из этой , то как понять, какой дефолтный у меня агент SSH.

Ruslan Polupan
  • July 19, 2019, 3:16 p.m.

Вот ссылка по работе с ключами и GitHub https://exlmoto.ru/git-and-qt-creator/#31
Сгенерируй новый ключ и добваь его на GitHub.

IscanderChe
  • July 19, 2019, 3:29 p.m.

Спасибо, уже разобрался по оригинальной статье на GitHub, всё заработало. Я просто хотел мягко намекнуть, что без этой информации ваша статья явно неполная.

Ruslan Polupan
  • July 20, 2019, 1:37 a.m.

Да я это понял. Просто предполагал что если пользуемся GitHub То он уже настроен.

Comments

Only authorized users can post comments.
Please, Log in or Sign up
e
  • ehot
  • March 31, 2024, 9:29 p.m.

C++ - Тест 003. Условия и циклы

  • Result:78points,
  • Rating points2
B

C++ - Test 002. Constants

  • Result:16points,
  • Rating points-10
B

C++ - Test 001. The first program and data types

  • Result:46points,
  • Rating points-6
Last comments
k
kmssrFeb. 9, 2024, 2:43 a.m.
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
Qt WinAPI - Lesson 007. Working with ICMP Ping in Qt Без строки #include <QRegularExpressionValidator> в заголовочном файле не работает валидатор.
EVA
EVADec. 25, 2023, 6:30 p.m.
Boost - static linking in CMake project under Windows Ошибка LNK1104 часто возникает, когда компоновщик не может найти или открыть файл библиотеки. В вашем случае, это файл libboost_locale-vc142-mt-gd-x64-1_74.lib из библиотеки Boost для C+…
J
JonnyJoDec. 25, 2023, 4:38 p.m.
Boost - static linking in CMake project under Windows Сделал всё по-как у вас, но выдаёт ошибку [build] LINK : fatal error LNK1104: не удается открыть файл "libboost_locale-vc142-mt-gd-x64-1_74.lib" Хоть убей, не могу понять в чём дел…
G
GvozdikDec. 19, 2023, 5:01 a.m.
Qt/C++ - Lesson 056. Connecting the Boost library in Qt for MinGW and MSVC compilers Для решения твой проблемы добавь в файл .pro строчку "LIBS += -lws2_32" она решит проблему , лично мне помогло.
Now discuss on the forum
DA
Dr Gangil AcademicsApril 20, 2024, 2:45 p.m.
Unlock Your Aesthetic Potential: Explore MSC in Facial Aesthetics and Cosmetology in India Embark on a transformative journey with an msc in facial aesthetics and cosmetology in india . Delve into the intricate world of beauty and rejuvenation, guided by expert faculty and …
a
a_vlasovApril 14, 2024, 1:41 p.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Евгений, добрый день! Такой вопрос. Верно ли следующее утверждение: Любое Android-приложение, написанное на Java/Kotlin чисто теоретически (пусть и с большими трудностями) можно написать и на C+…
Павел Дорофеев
Павел ДорофеевApril 14, 2024, 9:35 a.m.
QTableWidget с 2 заголовками Вот тут есть кастомный QTableView с многорядностью проект поддерживается, обращайтесь
f
fastrexApril 4, 2024, 11:47 a.m.
Вернуть старое поведение QComboBox, не менять индекс при resetModel Добрый день! У нас много проектов в которых используется QComboBox, в версии 5.5.1, когда модель испускает сигнал resetModel, currentIndex не менялся. В версии 5.15 при resetModel происходит try…

Follow us in social networks