Git-Repositorys initialisieren

Um ein Projektverzeichnis, das derzeit nicht unter Versionskontrolle steht, unter Versionskontrolle zu stellen, rufen Sie Tools > Git auf und wählen Sie anschließend „ Create Repository “ aus.

Qt Creator Dadurch wird ein neues Unterverzeichnis namens „ .git “ erstellt, das alle erforderlichen Repository-Dateien enthält. „ Qt Creator “ erstellt außerdem eine Datei namens „ .gitignore “, die Muster für Dateien enthält, die nicht von Git verfolgt werden sollen (z. B. Build-Verzeichnisse).

Git verfolgt noch nichts im Projekt, daher müssen Sie einen ersten Commit erstellen, um die Projektdateien zu verfolgen.

Siehe auch „Anleitung: Git verwenden “ und „Git nutzen“.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.