265
edits
Gschratzer (talk | contribs) Tag: 2017 source edit |
Gschratzer (talk | contribs) Tag: 2017 source edit |
||
| Line 40: | Line 40: | ||
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit "sudo apt-get install git" installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden). | Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit "sudo apt-get install git" installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden). | ||
==Clone | ==Clone Prozess== | ||
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein. | |||
* | *Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button "GIT Repository klonen". Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten. | ||
<source lang="ini"> | <source lang="ini"> | ||
git://github.com/Dolibarr/dolibarr.git (read only) | git://github.com/Dolibarr/dolibarr.git (read only) | ||
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben | |||
git@github.com:yourgitaccount/dolibarr.git (read and write access) | git@github.com:yourgitaccount/dolibarr.git (read and write access) | ||
</source> | </source> | ||
Ihr Eclipse-GIT-Client wird Sie auffordern, die Branches auszuwählen, an denen Sie interessiert sind. Branches, die jetzt noch nicht ausgewählt sind, können später durch einen "Fetch" aus der "Remotes"-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme. | |||
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie die Eclipse-Proxy-Zugangsdaten im Eclipse-Menü Fenster - Einstellungen - Allgemein - Netzwerkverbindung einstellen und die alternative URL verwenden: | |||
<source lang="ini"> | <source lang="ini"> | ||
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git | https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git | ||
</source> | </source> | ||
* | *Mit GIT auf der Befehlszeilenschnittstelle: | ||
Richten Sie zunächst Ihren Git-Client ein: | |||
<source lang="bash"> | <source lang="bash"> | ||
git config --global user.name "Your Name" | git config --global user.name "Your Name" | ||
| Line 66: | Line 64: | ||
git config --list | git config --list | ||
</source> | </source> | ||
Dann klonen Sie das Repository lokal: | |||
<source lang="bash"> | <source lang="bash"> | ||
git://github.com/Dolibarr/dolibarr.git ( | git://github.com/Dolibarr/dolibarr.git (nur lesen) | ||
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben | |||
git@github.com:yourgitaccount/dolibarr.git ( | git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff) | ||
</source> | </source> | ||
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden: | |||
<source lang="bash"> | <source lang="bash"> | ||
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport | git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport | ||
| Line 79: | Line 77: | ||
</source> | </source> | ||
Sobald dieser Schritt bestätigt ist, lädt Ihr GIT-Client alle Dateien vom entfernten GIT-Server herunter. Dies kann einige Sekunden oder Minuten dauern. | |||
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten. | |||
*Mit GIT auf der Befehlszeilenschnittstelle; | |||
<source lang="bash"> | <source lang="bash"> | ||
| Line 89: | Line 88: | ||
git checkout x.y | git checkout x.y | ||
</source> | </source> | ||
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt. | |||
*Klicken Sie in Eclipse mit der rechten Maustaste auf "Branches - Remotes -" die Branche, die Sie lokal duplizieren möchten". | |||
Choose "Create Branch" (and check the box "Checkout"). This will duplicate content of branch to work on it locally and will refresh your "Working Directory" to work on this branch. | Choose "Create Branch" (and check the box "Checkout"). This will duplicate content of branch to work on it locally and will refresh your "Working Directory" to work on this branch. | ||
edits