<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dolibarr.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Speaking+services</id>
	<title>Dolibarr ERP CRM Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dolibarr.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Speaking+services"/>
	<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php/Special:Contributions/Speaking_services"/>
	<updated>2026-10-24T07:33:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57076</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57076"/>
		<updated>2023-07-07T11:46:18Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Note added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
=Informations=&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|modulename=Time Tracker&lt;br /&gt;
|webbuy=https://www.dolistore.com/en/modules/1875-Time-Tracker.html&lt;br /&gt;
|editor=[[Speaking Services]]&lt;br /&gt;
|web=http://2geeks.me&lt;br /&gt;
|status=stable&lt;br /&gt;
|minversion=15.0.0&lt;br /&gt;
|note=First publication 2023&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
This module allows to track the time spent on working for a specific customer and to facilitate the billing process for the corresponding services. The main focus of this TimeTracking module is not only to measure the time spent on a specific service, but also to save time in the administration and billing of that service.&lt;br /&gt;
&lt;br /&gt;
=Install=&lt;br /&gt;
{{InstallModuleEn}}&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
{{ActivationModuleEn}}&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57075</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57075"/>
		<updated>2023-07-07T11:43:51Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Purchase Link updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
=Informations=&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|modulename=Time Tracker&lt;br /&gt;
|webbuy=https://www.dolistore.com/en/modules/1875-Time-Tracker.html&lt;br /&gt;
|editor=[[Speaking Services]]&lt;br /&gt;
|web=http://2geeks.me&lt;br /&gt;
|status=stable&lt;br /&gt;
|minversion=15.0.0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
This module allows to track the time spent on working for a specific customer and to facilitate the billing process for the corresponding services. The main focus of this TimeTracking module is not only to measure the time spent on a specific service, but also to save time in the administration and billing of that service.&lt;br /&gt;
&lt;br /&gt;
=Install=&lt;br /&gt;
{{InstallModuleEn}}&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
{{ActivationModuleEn}}&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57074</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57074"/>
		<updated>2023-07-07T11:37:46Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Purchase Link updated&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
[[Category:Complementary modules]]&lt;br /&gt;
[[Category:TimeTracker]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
=Informations=&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|modulename=Time Tracker&lt;br /&gt;
|webbuy={{LinkToPluginDownloadDoliStore}}/en/modules/1875-Time-Tracker.html&lt;br /&gt;
|editor=[[Speaking Services]]&lt;br /&gt;
|web=http://2geeks.me&lt;br /&gt;
|status=stable&lt;br /&gt;
|minversion=15.0.0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
This module allows to track the time spent on working for a specific customer and to facilitate the billing process for the corresponding services. The main focus of this TimeTracking module is not only to measure the time spent on a specific service, but also to save time in the administration and billing of that service.&lt;br /&gt;
&lt;br /&gt;
=Install=&lt;br /&gt;
{{InstallModuleEn}}&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
{{ActivationModuleEn}}&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57073</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57073"/>
		<updated>2023-07-07T11:35:30Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Header update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
[[Category:Complementary modules]]&lt;br /&gt;
[[Category:TimeTracker]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
=Informations=&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|modulename=Time Tracker&lt;br /&gt;
|webbuy={{LinkToPluginDownloadDoliStore}}&lt;br /&gt;
|editor=[[Speaking Services]]&lt;br /&gt;
|web=http://2geeks.me&lt;br /&gt;
|status=stable&lt;br /&gt;
|minversion=15.0.0&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
This module allows to track the time spent on working for a specific customer and to facilitate the billing process for the corresponding services. The main focus of this TimeTracking module is not only to measure the time spent on a specific service, but also to save time in the administration and billing of that service.&lt;br /&gt;
&lt;br /&gt;
=Install=&lt;br /&gt;
{{InstallModuleEn}}&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
{{ActivationModuleEn}}&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57072</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57072"/>
		<updated>2023-07-07T11:24:02Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Update of header information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Complementary modules]]&lt;br /&gt;
[[Category:TimeTracker]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
= Informations =&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|editor=[[Speaking Services]]&lt;br /&gt;
|web=http://2geeks.me&lt;br /&gt;
|status=stable&lt;br /&gt;
|minversion=2.6.0&lt;br /&gt;
|note=}}&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
This module allows to track the time spent on working for a specific customer and to facilitate the billing process for the corresponding services. The main focus of this TimeTracking module is not only to measure the time spent on a specific service, but also to save time in the administration and billing of that service.&lt;br /&gt;
&lt;br /&gt;
= Install =&lt;br /&gt;
{{InstallModuleEn}}&lt;br /&gt;
&lt;br /&gt;
= Setup =&lt;br /&gt;
{{ActivationModuleEn}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Complementary Modules]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57071</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57071"/>
		<updated>2023-07-07T11:20:53Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Header included&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Complementary modules]]&lt;br /&gt;
[[Category:TimeTracker]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
= Informations =&lt;br /&gt;
{{TemplateModuleInfo}}&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
SpeedFinder adds a menu to quick search for a contact or a company by entering a few digits of the phone.&lt;br /&gt;
&lt;br /&gt;
= Install =&lt;br /&gt;
{{InstallModuleEn}}&lt;br /&gt;
&lt;br /&gt;
= Setup =&lt;br /&gt;
{{ActivationModuleEn}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Complementary Modules]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57070</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57070"/>
		<updated>2023-07-07T11:15:26Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Templates included&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TemplateDocDevEn}}{{TemplateDocUser}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To be described&lt;br /&gt;
[[Category:Complementary Modules]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57069</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57069"/>
		<updated>2023-07-07T11:12:31Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To be described&lt;br /&gt;
[[Category:Complementary Modules]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57068</id>
		<title>Module Time Tracker</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Time_Tracker&amp;diff=57068"/>
		<updated>2023-07-07T09:39:40Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Description of the Time Tracker Module&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To be described&lt;br /&gt;
[[Category:Modules complémentaires]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54802</id>
		<title>Modul Barcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54802"/>
		<updated>2022-09-25T08:28:04Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Module_Barcode --&amp;gt;&lt;br /&gt;
[[en:Module_Barcode]]&lt;br /&gt;
[[fr:Module_Codes_Barre]]&lt;br /&gt;
[[es:Módulo_Código_de_barra]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
{{TemplateModEN Developer}}&lt;br /&gt;
{{BasculeDevUserEn|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=[[Modul Barcode (developer)]]|&lt;br /&gt;
userdoc=This page}}&lt;br /&gt;
&lt;br /&gt;
= Einleitung =&lt;br /&gt;
Diese Modul ermöglicht die Verwendung von Barcodes in Dolibarr (z.B. zum Druck in Belegen).&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
{{NoInstallModuleDE}}&lt;br /&gt;
&lt;br /&gt;
= Konfiguration =&lt;br /&gt;
{{ActivationModuleDE}}&lt;br /&gt;
&lt;br /&gt;
==Barcode-Kodierungstyp==&lt;br /&gt;
Auf der Einstellungs-Seite wählen Sie für jedes Barcodeformat, das Sie unterstützen möchten, die Engine, die die grafische Ausgabe (Bild) des Barcodes erstellt.&lt;br /&gt;
&lt;br /&gt;
Die standardmäßig verfügbaren und von den Dolibarr-Entwicklern unterstützten Engines sind die Dolibarr-interne Engine auf Basis von &#039;&#039;&#039;php-barcode&#039;&#039;&#039; und TCPDF-barcode, die den in der TCPDF-Bibliothek verfügbaren Barcode-Generator nutzt.&lt;br /&gt;
&lt;br /&gt;
Bei Bedarf können Sie das Programm genbarcode (http://www.ashberg.de/php-barcode/download/#genbarcode) installieren, um weitere von dieser Engine unterstützte Formate zu erhalten. Die Quellen für das Kommandozeilenprogramm &#039;&#039;&#039;genbarcode&#039;&#039;&#039; sind auch hier verfügbar: [[Datei:Genbarcode-0.4.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
Sie können auch neue Barcode-Generator-Engines installieren (siehe im Downloadbereich von http://www.dolibarr.org), um weitere Formate zu unterstützen.&lt;br /&gt;
&lt;br /&gt;
==Weitere Optionen==&lt;br /&gt;
Wählen Sie dann auf der Seite für die Moduleinrichtung stets aus, welche Funktion Sie mit Barcodes erweitern möchten:&lt;br /&gt;
&lt;br /&gt;
*Verwaltung der Produkte&lt;br /&gt;
*Verwaltung der Partner&lt;br /&gt;
&lt;br /&gt;
==Manager zur automatischen Definition von Barcode-Nummern (Produkt)==&lt;br /&gt;
Aktivieren Sie das Nummerierungsmodul, das Sie zum Vorschlagen und Validieren von Barcode-Nummern für Produkte verwenden möchten. Definieren Sie auch eine Maske, damit die automatische Nummerierung funktioniert.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie z. B. bei der vorherigen Einrichtung das EAN-Format ( http://en.wikipedia.org/wiki/International_Article_Number_(EAN) ) für Produkte gewählt haben, können Sie den Wert auf folgende Weise eingeben:&lt;br /&gt;
&amp;lt;syntaxHighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
300999{000000}&lt;br /&gt;
&amp;lt;/syntaxHighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dabei ist 300 die Landesnummer (siehe http://www.gs1.org/barcodes/support/prefix_list)&lt;br /&gt;
*999 ist die Unternehmensnummer (je nach Land kann sie mehr Ziffern haben). Um eine Nummer für Ihr Unternehmen zu erhalten, müssen Sie sich an die GS1 für Ihr Land wenden: http://www.gs1.org/contact&lt;br /&gt;
*{000000} ist die Produktnummer. Sie bestimmen diese Nummer. Sie ist ein Zähler mit maximal 6 Ziffern (je nach Land kann sie weniger Ziffern haben). Die Länge beträgt (8 - Anzahl der Ziffern für Ihre Firmennummer).&lt;br /&gt;
*Die Prüfsummenziffer ist für EAN13 nicht erforderlich (sie wird automatisch hinzugefügt).&lt;br /&gt;
&lt;br /&gt;
Hinweis: Ein EAN13-Strichcode identifiziert in den meisten Fällen ein Produkt (als Vorlage), ebenso wie die Referenz eines Produkts (auch &#039;&#039;&#039;Teilenummer&#039;&#039;&#039; genannt). Die Identifizierung der Serie oder eines Postens kann mit der &#039;&#039;&#039;Seriennummer&#039;&#039;&#039;, auch &#039;&#039;&#039;SSN&#039;&#039;&#039;, &#039;&#039;&#039;S/N&#039;&#039;&#039;, oder &#039;&#039;&#039;SN&#039;&#039;&#039; genannt, oder der &#039;&#039;&#039;Produktnummer&#039;&#039;&#039; erfolgen. Serien- und Produktnummer sind manchmal eine eigenständige Strichcodenummer, manchmal in einem EAN128-Code enthalten: http://www.barcodeisland.com/uccean128.phtml. Eine Seriennummer kann ein Posten oder eine einmalige Instanz eines Produkts sein (d.h. ein Posten von 1).&lt;br /&gt;
&lt;br /&gt;
Hinweis: Die &#039;&#039;&#039;SKU&#039;&#039;&#039; ist ein allgemeiner Begriff, um zu sagen: &amp;quot;Die ID ist genau genug, um den Bestand zu verwalten&amp;quot;. SKU hängt also davon ab, ob Sie einen Posten verwenden oder nicht. Es kann eine &#039;&#039;&#039;Teilenummer&#039;&#039;&#039; oder eine &#039;&#039;&#039;Seriennummer&#039;&#039;&#039; sein. Am besten ist es, diesen Begriff nicht zu verwenden, um Verwirrung zu vermeiden.&lt;br /&gt;
&lt;br /&gt;
=Verwendung=&lt;br /&gt;
Sobald der Einrichtungsschritt abgeschlossen ist, sehen Sie auf einigen Bildschirmen ein neues Feld &amp;quot;Barcode&amp;quot;, je nachdem, was Sie für die zu erweiternden Funktionen ausgewählt haben (Seiten für Partner und/oder Produkt-Seiten).&lt;br /&gt;
In diese Felder können Sie dann Barcodewerte über die Tastatur oder einen Barcodescanner eingeben:&lt;br /&gt;
&lt;br /&gt;
==Verwendung der Tastatur==&lt;br /&gt;
Geben Sie einfach die im Barcode dargestellte Nummer ein. Dies setzt voraus, dass diese Nummer unter der Barcode-Grafik gedruckt wurde. Dies ist der Fall, wenn Sie den Barcode-Sticker mit der Funktion &amp;quot;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&#039;&#039;&#039;Print barcode&#039;&#039;&#039;&#039;&#039;&#039;&amp;quot; drucken, die mit Dolibarr 3.6+ (Menü &#039;&#039;&#039;Tools&#039;&#039;&#039;) bereitgestellt wird.&lt;br /&gt;
&lt;br /&gt;
==Verwendung eines Barcode-Scanners==&lt;br /&gt;
Wenn der Barcode nicht sichtbar ist oder wenn Sie keine Zeit mit dem Eintippen der Zahlen verlieren wollen, können Sie einen Hardware-Barcodescanner verwenden. Um mit Dolibarr kompatibel zu sein, muss Ihr Barcodescanner die &amp;quot;Tastatur-Emulation&amp;quot; unterstützen: Wenn Sie den Barcode scannen, ist es so, als würden Sie die Zahl auf der Tastatur eingeben.&lt;br /&gt;
Um einen Barcode-Scanner zu finden, der diese Emulation unterstützt, müssen Sie einen Blick auf die technische Spezifikation werfen. Der Scanner muss den Begriff unterstützen:&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;HID&amp;quot; Modus (für Human Interface Device)&lt;br /&gt;
&lt;br /&gt;
oder&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;Keyboard Wedge&amp;quot; oder &amp;quot;Wedge&amp;quot; Schnittstelle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen auf der Seite: http://www.taltech.com/barcodesoftware/articles/which_barcode_scanner_interface&lt;br /&gt;
&lt;br /&gt;
Es gibt Barcodeleser, die den Barcode EAN13 (13 Zahlen) lesen, und andere, die den Barcode Code-39 (numerisch, unbegrenzte Anzahl von Zeichen) oder den Barcode Code-128 (Alphabet, unbegrenzte Anzahl von Zeichen) lesen. Die meisten Barcode-Scanner lesen alle Formate.&lt;br /&gt;
&lt;br /&gt;
*EAN13 wird verwendet, um ein Produkt zu definieren.&lt;br /&gt;
*Code-39 wird für die Bestandsverfolgung verwendet (Seriennummer nur mit numerischen Zeichen).&lt;br /&gt;
*Code-128 wird für die Lagerbestandsverfolgung verwendet (Seriennummer mit numerischen und alphanumerischen Zeichen).&lt;br /&gt;
&lt;br /&gt;
Um zu testen, ob Ihr Scanner den Code-128 lesen kann, können Sie diese Seite verwenden (drucken Sie sie vorher aus, da die meisten Scanner nicht funktionieren, wenn sie direkt auf dem Computerbildschirm verwendet werden):&lt;br /&gt;
http://www.softmatic.com/faq-2-7.html&lt;br /&gt;
&lt;br /&gt;
Beispiele:&lt;br /&gt;
&lt;br /&gt;
*MOTOROla DS4208&lt;br /&gt;
*Datalogic QW2120&lt;br /&gt;
*EAN: 6913280798816&lt;br /&gt;
&lt;br /&gt;
Dies ist ein weiteres Beispiel, das erfolgreich unter Linux Ubuntu getestet wurde:&lt;br /&gt;
&lt;br /&gt;
*http://www.amazon.de/gp/product/B008RG3EG6&lt;br /&gt;
*Schließen Sie einfach das USB-Kabel des Scanners an Ihren Computer an und scannen Sie dann den Barcode auf dem mitgelieferten Handbuch, um die richtige Tastatur einzustellen. Sobald dies geschehen ist, wird jeder Scan so ausgegeben, als ob Sie die Tastatur verwenden.&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54800</id>
		<title>Modul Barcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54800"/>
		<updated>2022-09-25T08:18:10Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Module_Barcode --&amp;gt;&lt;br /&gt;
[[en:Module_Barcode]]&lt;br /&gt;
[[fr:Module_Codes_Barre]]&lt;br /&gt;
[[es:Módulo_Código_de_barra]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
{{TemplateModEN Developer}}&lt;br /&gt;
{{BasculeDevUserEn|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=[[Modul Barcode (developer)]]|&lt;br /&gt;
userdoc=This page}}&lt;br /&gt;
&lt;br /&gt;
= Einleitung =&lt;br /&gt;
Diese Modul ermöglicht die Verwendung von Barcodes in Dolibarr (z.B. zum Druck in Belegen).&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
{{NoInstallModuleDE}}&lt;br /&gt;
&lt;br /&gt;
= Konfiguration =&lt;br /&gt;
{{ActivationModuleDE}}&lt;br /&gt;
&lt;br /&gt;
==Barcode-Kodierungstyp==&lt;br /&gt;
Auf der Einstellungs-Seite wählen Sie für jedes Barcodeformat, das Sie unterstützen möchten, die Engine, die die grafische Ausgabe (Bild) des Barcodes erstellt.&lt;br /&gt;
&lt;br /&gt;
Die standardmäßig verfügbaren und von den Dolibarr-Entwicklern unterstützten Engines sind die Dolibarr-interne Engine auf Basis von &#039;&#039;&#039;php-barcode&#039;&#039;&#039; und TCPDF-barcode, die den in der TCPDF-Bibliothek verfügbaren Barcode-Generator nutzt.&lt;br /&gt;
&lt;br /&gt;
Bei Bedarf können Sie das Programm genbarcode (http://www.ashberg.de/php-barcode/download/#genbarcode) installieren, um weitere von dieser Engine unterstützte Formate zu erhalten. Die Quellen für das Kommandozeilenprogramm &#039;&#039;&#039;genbarcode&#039;&#039;&#039; sind auch hier verfügbar: [[Datei:Genbarcode-0.4.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
Sie können auch neue Barcode-Generator-Engines installieren (siehe im Downloadbereich von http://www.dolibarr.org), um weitere Formate zu unterstützen.&lt;br /&gt;
&lt;br /&gt;
==Weitere Optionen==&lt;br /&gt;
Wählen Sie dann auf der Seite für die Moduleinrichtung stets aus, welche Funktion Sie mit Barcodes erweitern möchten:&lt;br /&gt;
&lt;br /&gt;
*Verwaltung der Produkte&lt;br /&gt;
*Verwaltung der Partner&lt;br /&gt;
&lt;br /&gt;
==Manager zur automatischen Definition von Barcode-Nummern (Produkt)==&lt;br /&gt;
Aktivieren Sie das Nummerierungsmodul, das Sie zum Vorschlagen und Validieren von Barcode-Nummern für Produkte verwenden möchten. Definieren Sie auch eine Maske, damit die automatische Nummerierung funktioniert.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie z. B. bei der vorherigen Einrichtung das EAN-Format ( http://en.wikipedia.org/wiki/International_Article_Number_(EAN) ) für Produkte gewählt haben, können Sie den Wert auf folgende Weise eingeben:&lt;br /&gt;
&amp;lt;syntaxHighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
300999{000000}&lt;br /&gt;
&amp;lt;/syntaxHighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dabei ist 300 die Landesnummer (siehe http://www.gs1.org/barcodes/support/prefix_list)&lt;br /&gt;
*999 ist die Unternehmensnummer (je nach Land kann sie mehr Ziffern haben). Um eine Nummer für Ihr Unternehmen zu erhalten, müssen Sie sich an die GS1 für Ihr Land wenden: http://www.gs1.org/contact&lt;br /&gt;
*{000000} ist die Produktnummer. Sie bestimmen diese Nummer. Sie ist ein Zähler mit maximal 6 Ziffern (je nach Land kann sie weniger Ziffern haben). Die Länge beträgt (8 - Anzahl der Ziffern für Ihre Firmennummer).&lt;br /&gt;
*Die Prüfsummenziffer ist für EAN13 nicht erforderlich (sie wird automatisch hinzugefügt).&lt;br /&gt;
&lt;br /&gt;
Hinweis: Ein EAN13-Strichcode identifiziert in den meisten Fällen ein Produkt (als Vorlage), ebenso wie die Referenz eines Produkts (auch &#039;&#039;&#039;Teilenummer&#039;&#039;&#039; genannt). Die Identifizierung der Serie oder eines Postens kann mit der &#039;&#039;&#039;Seriennummer&#039;&#039;&#039;, auch &#039;&#039;&#039;SSN&#039;&#039;&#039;, &#039;&#039;&#039;S/N&#039;&#039;&#039;, oder &#039;&#039;&#039;SN&#039;&#039;&#039; genannt, oder der &#039;&#039;&#039;Produktnummer&#039;&#039;&#039; erfolgen. Serien- und Produktnummer sind manchmal eine eigenständige Strichcodenummer, manchmal in einem EAN128-Code enthalten: http://www.barcodeisland.com/uccean128.phtml. Eine Seriennummer kann ein Posten oder eine einmalige Instanz eines Produkts sein (d.h. ein Posten von 1).&lt;br /&gt;
&lt;br /&gt;
Hinweis: Die &#039;&#039;&#039;SKU&#039;&#039;&#039; ist ein allgemeiner Begriff, um zu sagen: &amp;quot;Die ID ist genau genug, um den Bestand zu verwalten&amp;quot;. SKU hängt also davon ab, ob Sie einen Posten verwenden oder nicht. Es kann eine &#039;&#039;&#039;Teilenummer&#039;&#039;&#039; oder eine &#039;&#039;&#039;Seriennummer&#039;&#039;&#039; sein. Am besten ist es, diesen Begriff nicht zu verwenden, um Verwirrung zu vermeiden.&lt;br /&gt;
&lt;br /&gt;
=Verwendung=&lt;br /&gt;
Sobald der Einrichtungsschritt abgeschlossen ist, sehen Sie auf einigen Bildschirmen ein neues Feld &amp;quot;Barcode&amp;quot;, je nachdem, was Sie für die zu erweiternden Funktionen ausgewählt haben (Seiten für Partner und/oder Produkt-Seiten).&lt;br /&gt;
In diese Felder können Sie dann Barcodewerte über die Tastatur oder einen Barcodescanner eingeben:&lt;br /&gt;
&lt;br /&gt;
==Verwendung der Tastatur==&lt;br /&gt;
Geben Sie einfach die im Barcode dargestellte Nummer ein. Dies setzt voraus, dass diese Nummer unter der Barcode-Grafik gedruckt wurde. Dies ist der Fall, wenn Sie den Barcode-Sticker mit der Funktion &amp;quot;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&#039;&#039;&#039;Print barcode&#039;&#039;&#039;&#039;&#039;&#039;&amp;quot; drucken, die mit Dolibarr 3.6+ (Menü &#039;&#039;&#039;Tools&#039;&#039;&#039;) bereitgestellt wird.&lt;br /&gt;
&lt;br /&gt;
==Verwendung eines Barcode-Scanners==&lt;br /&gt;
Wenn der Barcode nicht sichtbar ist oder wenn Sie keine Zeit mit dem Eintippen der Zahlen verlieren wollen, können Sie einen Hardware-Barcodescanner verwenden. Um mit Dolibarr kompatibel zu sein, muss Ihr Barcodescanner die &amp;quot;Tastatur-Emulation&amp;quot; unterstützen: Wenn Sie den Barcode scannen, ist es so, als würden Sie die Zahl auf der Tastatur eingeben.&lt;br /&gt;
Um einen Barcode-Scanner zu finden, der diese Emulation unterstützt, müssen Sie einen Blick auf die technische Spezifikation werfen. Der Scanner muss den Begriff unterstützen:&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;HID&amp;quot; Modus (für Human Interface Device)&lt;br /&gt;
&lt;br /&gt;
oder&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;Keyboard Wedge&amp;quot; oder &amp;quot;Wedge&amp;quot; Schnittstelle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen auf der Seite: http://www.taltech.com/barcodesoftware/articles/which_barcode_scanner_interface&lt;br /&gt;
&lt;br /&gt;
Es gibt Barcodeleser, die den Barcode EAN13 (13 Zahlen) lesen, und andere, die den Barcode Code-39 (numerisch, unbegrenzte Anzahl von Zeichen) oder den Barcode Code-128 (Alphabet, unbegrenzte Anzahl von Zeichen) lesen. Die meisten Barcode-Scanner lesen alle Formate.&lt;br /&gt;
&lt;br /&gt;
*EAN13 wird verwendet, um ein Produkt zu definieren.&lt;br /&gt;
*Code-39 wird für die Bestandsverfolgung verwendet (Seriennummer nur mit numerischen Zeichen).&lt;br /&gt;
*Code-128 wird für die Lagerbestandsverfolgung verwendet (Seriennummer mit numerischen und alphanumerischen Zeichen).&lt;br /&gt;
&lt;br /&gt;
Um zu testen, ob Ihr Scanner den Code-128 lesen kann, können Sie diese Seite verwenden (drucken Sie sie vorher aus, da die meisten Scanner nicht funktionieren, wenn sie direkt auf dem Computerbildschirm verwendet werden):&lt;br /&gt;
http://www.softmatic.com/faq-2-7.html&lt;br /&gt;
&lt;br /&gt;
Beispiele:&lt;br /&gt;
&lt;br /&gt;
*MOTOROla DS4208&lt;br /&gt;
*Datalogic QW2120&lt;br /&gt;
*EAN: 6913280798816&lt;br /&gt;
&lt;br /&gt;
Dies ist ein weiteres Beispiel, das erfolgreich unter Linux Ubuntu getestet wurde:&lt;br /&gt;
&lt;br /&gt;
*http://www.amazon.fr/gp/product/B008RG3EG6&lt;br /&gt;
*Schließen Sie einfach das USB-Kabel des Scanners an Ihren Computer an und scannen Sie dann den Barcode auf dem mitgelieferten Handbuch, um die richtige Tastatur einzustellen. Sobald dies geschehen ist, wird jeder Scan so ausgegeben, als ob Sie die Tastatur verwenden.&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54799</id>
		<title>Modul Barcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54799"/>
		<updated>2022-09-25T08:16:56Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Module_Barcode --&amp;gt;&lt;br /&gt;
[[en:Module_Barcode]]&lt;br /&gt;
[[fr:Module_Codes_Barre]]&lt;br /&gt;
[[es:Módulo_Código_de_barra]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
{{TemplateModDE Developer}}&lt;br /&gt;
{{BasculeDevUserDe|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=[[Modul Barcode (developer)]]|&lt;br /&gt;
userdoc=This page}}&lt;br /&gt;
&lt;br /&gt;
= Einleitung =&lt;br /&gt;
Diese Modul ermöglicht die Verwendung von Barcodes in Dolibarr (z.B. zum Druck in Belegen).&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
{{NoInstallModuleDE}}&lt;br /&gt;
&lt;br /&gt;
= Konfiguration =&lt;br /&gt;
{{ActivationModuleDE}}&lt;br /&gt;
&lt;br /&gt;
==Barcode-Kodierungstyp==&lt;br /&gt;
Auf der Einstellungs-Seite wählen Sie für jedes Barcodeformat, das Sie unterstützen möchten, die Engine, die die grafische Ausgabe (Bild) des Barcodes erstellt.&lt;br /&gt;
&lt;br /&gt;
Die standardmäßig verfügbaren und von den Dolibarr-Entwicklern unterstützten Engines sind die Dolibarr-interne Engine auf Basis von &#039;&#039;&#039;php-barcode&#039;&#039;&#039; und TCPDF-barcode, die den in der TCPDF-Bibliothek verfügbaren Barcode-Generator nutzt.&lt;br /&gt;
&lt;br /&gt;
Bei Bedarf können Sie das Programm genbarcode (http://www.ashberg.de/php-barcode/download/#genbarcode) installieren, um weitere von dieser Engine unterstützte Formate zu erhalten. Die Quellen für das Kommandozeilenprogramm &#039;&#039;&#039;genbarcode&#039;&#039;&#039; sind auch hier verfügbar: [[Datei:Genbarcode-0.4.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
Sie können auch neue Barcode-Generator-Engines installieren (siehe im Downloadbereich von http://www.dolibarr.org), um weitere Formate zu unterstützen.&lt;br /&gt;
&lt;br /&gt;
==Weitere Optionen==&lt;br /&gt;
Wählen Sie dann auf der Seite für die Moduleinrichtung stets aus, welche Funktion Sie mit Barcodes erweitern möchten:&lt;br /&gt;
&lt;br /&gt;
*Verwaltung der Produkte&lt;br /&gt;
*Verwaltung der Partner&lt;br /&gt;
&lt;br /&gt;
==Manager zur automatischen Definition von Barcode-Nummern (Produkt)==&lt;br /&gt;
Aktivieren Sie das Nummerierungsmodul, das Sie zum Vorschlagen und Validieren von Barcode-Nummern für Produkte verwenden möchten. Definieren Sie auch eine Maske, damit die automatische Nummerierung funktioniert.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie z. B. bei der vorherigen Einrichtung das EAN-Format ( http://en.wikipedia.org/wiki/International_Article_Number_(EAN) ) für Produkte gewählt haben, können Sie den Wert auf folgende Weise eingeben:&lt;br /&gt;
&amp;lt;syntaxHighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
300999{000000}&lt;br /&gt;
&amp;lt;/syntaxHighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dabei ist 300 die Landesnummer (siehe http://www.gs1.org/barcodes/support/prefix_list)&lt;br /&gt;
*999 ist die Unternehmensnummer (je nach Land kann sie mehr Ziffern haben). Um eine Nummer für Ihr Unternehmen zu erhalten, müssen Sie sich an die GS1 für Ihr Land wenden: http://www.gs1.org/contact&lt;br /&gt;
*{000000} ist die Produktnummer. Sie bestimmen diese Nummer. Sie ist ein Zähler mit maximal 6 Ziffern (je nach Land kann sie weniger Ziffern haben). Die Länge beträgt (8 - Anzahl der Ziffern für Ihre Firmennummer).&lt;br /&gt;
*Die Prüfsummenziffer ist für EAN13 nicht erforderlich (sie wird automatisch hinzugefügt).&lt;br /&gt;
&lt;br /&gt;
Hinweis: Ein EAN13-Strichcode identifiziert in den meisten Fällen ein Produkt (als Vorlage), ebenso wie die Referenz eines Produkts (auch &#039;&#039;&#039;Teilenummer&#039;&#039;&#039; genannt). Die Identifizierung der Serie oder eines Postens kann mit der &#039;&#039;&#039;Seriennummer&#039;&#039;&#039;, auch &#039;&#039;&#039;SSN&#039;&#039;&#039;, &#039;&#039;&#039;S/N&#039;&#039;&#039;, oder &#039;&#039;&#039;SN&#039;&#039;&#039; genannt, oder der &#039;&#039;&#039;Produktnummer&#039;&#039;&#039; erfolgen. Serien- und Produktnummer sind manchmal eine eigenständige Strichcodenummer, manchmal in einem EAN128-Code enthalten: http://www.barcodeisland.com/uccean128.phtml. Eine Seriennummer kann ein Posten oder eine einmalige Instanz eines Produkts sein (d.h. ein Posten von 1).&lt;br /&gt;
&lt;br /&gt;
Hinweis: Die &#039;&#039;&#039;SKU&#039;&#039;&#039; ist ein allgemeiner Begriff, um zu sagen: &amp;quot;Die ID ist genau genug, um den Bestand zu verwalten&amp;quot;. SKU hängt also davon ab, ob Sie einen Posten verwenden oder nicht. Es kann eine &#039;&#039;&#039;Teilenummer&#039;&#039;&#039; oder eine &#039;&#039;&#039;Seriennummer&#039;&#039;&#039; sein. Am besten ist es, diesen Begriff nicht zu verwenden, um Verwirrung zu vermeiden.&lt;br /&gt;
&lt;br /&gt;
=Verwendung=&lt;br /&gt;
Sobald der Einrichtungsschritt abgeschlossen ist, sehen Sie auf einigen Bildschirmen ein neues Feld &amp;quot;Barcode&amp;quot;, je nachdem, was Sie für die zu erweiternden Funktionen ausgewählt haben (Seiten für Partner und/oder Produkt-Seiten).&lt;br /&gt;
In diese Felder können Sie dann Barcodewerte über die Tastatur oder einen Barcodescanner eingeben:&lt;br /&gt;
&lt;br /&gt;
==Verwendung der Tastatur==&lt;br /&gt;
Geben Sie einfach die im Barcode dargestellte Nummer ein. Dies setzt voraus, dass diese Nummer unter der Barcode-Grafik gedruckt wurde. Dies ist der Fall, wenn Sie den Barcode-Sticker mit der Funktion &amp;quot;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&#039;&#039;&#039;Print barcode&#039;&#039;&#039;&#039;&#039;&#039;&amp;quot; drucken, die mit Dolibarr 3.6+ (Menü &#039;&#039;&#039;Tools&#039;&#039;&#039;) bereitgestellt wird.&lt;br /&gt;
&lt;br /&gt;
==Verwendung eines Barcode-Scanners==&lt;br /&gt;
Wenn der Barcode nicht sichtbar ist oder wenn Sie keine Zeit mit dem Eintippen der Zahlen verlieren wollen, können Sie einen Hardware-Barcodescanner verwenden. Um mit Dolibarr kompatibel zu sein, muss Ihr Barcodescanner die &amp;quot;Tastatur-Emulation&amp;quot; unterstützen: Wenn Sie den Barcode scannen, ist es so, als würden Sie die Zahl auf der Tastatur eingeben.&lt;br /&gt;
Um einen Barcode-Scanner zu finden, der diese Emulation unterstützt, müssen Sie einen Blick auf die technische Spezifikation werfen. Der Scanner muss den Begriff unterstützen:&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;HID&amp;quot; Modus (für Human Interface Device)&lt;br /&gt;
&lt;br /&gt;
oder&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;Keyboard Wedge&amp;quot; oder &amp;quot;Wedge&amp;quot; Schnittstelle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen auf der Seite: http://www.taltech.com/barcodesoftware/articles/which_barcode_scanner_interface&lt;br /&gt;
&lt;br /&gt;
Es gibt Barcodeleser, die den Barcode EAN13 (13 Zahlen) lesen, und andere, die den Barcode Code-39 (numerisch, unbegrenzte Anzahl von Zeichen) oder den Barcode Code-128 (Alphabet, unbegrenzte Anzahl von Zeichen) lesen. Die meisten Barcode-Scanner lesen alle Formate.&lt;br /&gt;
&lt;br /&gt;
*EAN13 wird verwendet, um ein Produkt zu definieren.&lt;br /&gt;
*Code-39 wird für die Bestandsverfolgung verwendet (Seriennummer nur mit numerischen Zeichen).&lt;br /&gt;
*Code-128 wird für die Lagerbestandsverfolgung verwendet (Seriennummer mit numerischen und alphanumerischen Zeichen).&lt;br /&gt;
&lt;br /&gt;
Um zu testen, ob Ihr Scanner den Code-128 lesen kann, können Sie diese Seite verwenden (drucken Sie sie vorher aus, da die meisten Scanner nicht funktionieren, wenn sie direkt auf dem Computerbildschirm verwendet werden):&lt;br /&gt;
http://www.softmatic.com/faq-2-7.html&lt;br /&gt;
&lt;br /&gt;
Beispiele:&lt;br /&gt;
&lt;br /&gt;
*MOTOROla DS4208&lt;br /&gt;
*Datalogic QW2120&lt;br /&gt;
*EAN: 6913280798816&lt;br /&gt;
&lt;br /&gt;
Dies ist ein weiteres Beispiel, das erfolgreich unter Linux Ubuntu getestet wurde:&lt;br /&gt;
&lt;br /&gt;
*http://www.amazon.fr/gp/product/B008RG3EG6&lt;br /&gt;
*Schließen Sie einfach das USB-Kabel des Scanners an Ihren Computer an und scannen Sie dann den Barcode auf dem mitgelieferten Handbuch, um die richtige Tastatur einzustellen. Sobald dies geschehen ist, wird jeder Scan so ausgegeben, als ob Sie die Tastatur verwenden.&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54798</id>
		<title>Modul Barcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54798"/>
		<updated>2022-09-25T07:58:02Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Module_Barcode --&amp;gt;&lt;br /&gt;
[[en:Module_Barcode]]&lt;br /&gt;
[[fr:Module_Codes_Barre]]&lt;br /&gt;
[[es:Módulo_Código_de_barra]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
{{TemplateModDE Developer}}&lt;br /&gt;
{{BasculeDevUserDe|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=[[Modul Barcode (developer)]]|&lt;br /&gt;
userdoc=This page}}&lt;br /&gt;
&lt;br /&gt;
= Einleitung =&lt;br /&gt;
Diese Modul ermöglicht die Verwendung von Barcodes in Dolibarr (z.B. zum Druck in Belegen).&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
{{NoInstallModuleDE}}&lt;br /&gt;
&lt;br /&gt;
= Konfiguration =&lt;br /&gt;
{{ActivationModuleDE}}&lt;br /&gt;
&lt;br /&gt;
==Barcode-Kodierungstyp==&lt;br /&gt;
Auf der Einstellungs-Seite wählen Sie für jedes Barcodeformat, das Sie unterstützen möchten, die Engine, die die grafische Ausgabe (Bild) des Barcodes erstellt.&lt;br /&gt;
&lt;br /&gt;
Die standardmäßig verfügbaren und von den Dolibarr-Entwicklern unterstützten Engines sind die Dolibarr-interne Engine auf Basis von &#039;&#039;&#039;php-barcode&#039;&#039;&#039; und TCPDF-barcode, die den in der TCPDF-Bibliothek verfügbaren Barcode-Generator nutzt.&lt;br /&gt;
&lt;br /&gt;
Bei Bedarf können Sie das Programm genbarcode (http://www.ashberg.de/php-barcode/download/#genbarcode) installieren, um weitere von dieser Engine unterstützte Formate zu erhalten. Die Quellen für das Kommandozeilenprogramm &#039;&#039;&#039;genbarcode&#039;&#039;&#039; sind auch hier verfügbar: [[Datei:Genbarcode-0.4.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
Sie können auch neue Barcode-Generator-Engines installieren (siehe im Downloadbereich von http://www.dolibarr.org), um weitere Formate zu unterstützen.&lt;br /&gt;
&lt;br /&gt;
==Weitere Optionen==&lt;br /&gt;
Wählen Sie dann auf der Seite für die Moduleinrichtung stets aus, welche Funktion Sie mit Barcodes erweitern möchten:&lt;br /&gt;
&lt;br /&gt;
*Verwaltung der Produkte&lt;br /&gt;
*Verwaltung der Partner&lt;br /&gt;
&lt;br /&gt;
==Manager zur automatischen Definition von Barcode-Nummern (Produkt)==&lt;br /&gt;
Aktivieren Sie das Nummerierungsmodul, das Sie zum Vorschlagen und Validieren von Barcode-Nummern für Produkte verwenden möchten. Definieren Sie auch eine Maske, damit die automatische Nummerierung funktioniert.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie z. B. bei der vorherigen Einrichtung das EAN-Format ( http://en.wikipedia.org/wiki/International_Article_Number_(EAN) ) für Produkte gewählt haben, können Sie den Wert auf folgende Weise eingeben:&lt;br /&gt;
&amp;lt;syntaxHighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
300999{000000}&lt;br /&gt;
&amp;lt;/syntaxHighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dabei ist 300 die Landesnummer (siehe http://www.gs1.org/barcodes/support/prefix_list)&lt;br /&gt;
*999 ist die Unternehmensnummer (je nach Land kann sie mehr Ziffern haben). Um eine Nummer für Ihr Unternehmen zu erhalten, müssen Sie sich an die GS1 für Ihr Land wenden: http://www.gs1.org/contact&lt;br /&gt;
*{000000} ist die Produktnummer. Sie bestimmen diese Nummer. Sie ist ein Zähler mit maximal 6 Ziffern (je nach Land kann sie weniger Ziffern haben). Die Länge beträgt (8 - Anzahl der Ziffern für Ihre Firmennummer).&lt;br /&gt;
*Die Prüfsummenziffer ist für EAN13 nicht erforderlich (sie wird automatisch hinzugefügt).&lt;br /&gt;
&lt;br /&gt;
Note: A barcode EAN13 identify in most cases a product (as a template), like do the reference of a product (also called &#039;&#039;&#039;Part number&#039;&#039;&#039;). Identification of the serial or lot can be done with the &#039;&#039;&#039;Serial No&#039;&#039;&#039; also called &#039;&#039;&#039;SSN&#039;&#039;&#039;, &#039;&#039;&#039;S/N&#039;&#039;&#039;, or &#039;&#039;&#039;SN&#039;&#039;&#039; or the &#039;&#039;&#039;Product No&#039;&#039;&#039;. Serial and Product are sometimes an autonomous bar code number, sometimes included into a EAN128 code: http://www.barcodeisland.com/uccean128.phtml. A serial may be a lot or a unique instance of a product (that is a lot of 1).&lt;br /&gt;
&lt;br /&gt;
Note: The &#039;&#039;&#039;SKU&#039;&#039;&#039; is a generic term to say: &amp;quot;The ID enough accurate to manage stock&amp;quot;. So SKU depends if you use lot or not. It can be a &#039;&#039;&#039;Part number&#039;&#039;&#039; or a &#039;&#039;&#039;Serial No&#039;&#039;&#039;. Best thing is to avoid using this term to avoid confusion.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
Once the setup step is finished, you will see a new field &amp;quot;bar code&amp;quot; on some screens, depending on what you choosed for features to enhance (third party screen and/or product screen).&lt;br /&gt;
You can then enter barcode values in such fields, using keyboard or barcode scanner:&lt;br /&gt;
==Using keyboard==&lt;br /&gt;
Just enter the number represented into the barcode. This suppose that number was printed under barcode graphic. This will be the case if you print the barcode stickker using the &amp;quot;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&#039;&#039;&#039;Print barcode&#039;&#039;&#039;&#039;&#039;&#039;&amp;quot; feature provided with Dolibarr 3.6+ (menu &#039;&#039;&#039;Tools&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Using barcode scanner==&lt;br /&gt;
If barcode number is not visible, or if you don&#039;t want to loose time typing all numbers, you can use a hardware barcode scanner. To be compatible with Dolibarr, your barcode scanner must support the &amp;quot;keyboard emulation&amp;quot;: When you scan the barcode, it is like when typing the number from the keyboard.&lt;br /&gt;
To find a barcode scanner supporting such emulation, you must have a look a technical specification of barcode. Scanner must provide the term:&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;HID&amp;quot; mode (for Human Interface Device)&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;Keyboard Wedge&amp;quot; or &amp;quot;Wedge&amp;quot; interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information on page: http://www.taltech.com/barcodesoftware/articles/which_barcode_scanner_interface&lt;br /&gt;
&lt;br /&gt;
You can find bar code reader to read barcode EAN13 (13 numbers) and others to read barcode code-39 (numeric, unlimited number of characters) or barcode code-128 (alphabet, unlimited number of characters). Most barcode scanner read all formats.&lt;br /&gt;
&lt;br /&gt;
*EAN13 is used to define a product.&lt;br /&gt;
*code-39 is used for stock tracking (serial number with numeric character only).&lt;br /&gt;
*code-128 is used for stock tracking (serial number with numeric and alpha character).&lt;br /&gt;
&lt;br /&gt;
To test your scanner can read code-128, you can use this page (print it before, most scanner don&#039;t work when used directly on computer screen display):&lt;br /&gt;
http://www.softmatic.com/faq-2-7.html&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
*MOTOROla DS4208&lt;br /&gt;
*Datalogic QW2120&lt;br /&gt;
*EAN: 6913280798816&lt;br /&gt;
&lt;br /&gt;
This is another example tested successfuly on a Linux Ubuntu:&lt;br /&gt;
&lt;br /&gt;
*http://www.amazon.fr/gp/product/B008RG3EG6&lt;br /&gt;
*Just plug the USB cable of scanner into your computer, then you need to scan the barcode on provided manuel to set the correct keyboard. Once done, every scan will be output as if you use the keyboard.&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54797</id>
		<title>Modul Barcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode&amp;diff=54797"/>
		<updated>2022-09-25T07:55:28Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Module_Barcode --&amp;gt;&lt;br /&gt;
[[en:Module_Barcode]]&lt;br /&gt;
[[fr:Module_Codes_Barre]]&lt;br /&gt;
[[es:Módulo_Código_de_barra]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
{{TemplateModDE Developer}}&lt;br /&gt;
{{BasculeDevUserDe|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=[[Modul Barcode (developer)]]|&lt;br /&gt;
userdoc=This page}}&lt;br /&gt;
&lt;br /&gt;
= Einleitung =&lt;br /&gt;
Diese Modul ermöglicht die Verwendung von Barcodes in Dolibarr (z.B. zum Druck in Belegen).&lt;br /&gt;
&lt;br /&gt;
= Installation =&lt;br /&gt;
{{NoInstallModuleDE}}&lt;br /&gt;
&lt;br /&gt;
= Konfiguration =&lt;br /&gt;
{{ActivationModuleDE}}&lt;br /&gt;
&lt;br /&gt;
==Barcode-Kodierungstyp==&lt;br /&gt;
Auf der Einstellungs-Seite wählen Sie für jedes Barcodeformat, das Sie unterstützen möchten, die Engine, die die grafische Ausgabe (Bild) des Barcodes erstellt.&lt;br /&gt;
&lt;br /&gt;
Die standardmäßig verfügbaren und von den Dolibarr-Entwicklern unterstützten Engines sind die Dolibarr-interne Engine auf Basis von &#039;&#039;&#039;php-barcode&#039;&#039;&#039; und TCPDF-barcode, die den in der TCPDF-Bibliothek verfügbaren Barcode-Generator nutzt.&lt;br /&gt;
&lt;br /&gt;
Bei Bedarf können Sie das Programm genbarcode (http://www.ashberg.de/php-barcode/download/#genbarcode) installieren, um weitere von dieser Engine unterstützte Formate zu erhalten. Die Quellen für das Kommandozeilenprogramm &#039;&#039;&#039;genbarcode&#039;&#039;&#039; sind auch hier verfügbar: [[Datei:Genbarcode-0.4.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
Sie können auch neue Barcode-Generator-Engines installieren (siehe im Downloadbereich von http://www.dolibarr.org), um weitere Formate zu unterstützen.&lt;br /&gt;
&lt;br /&gt;
==Weitere Optionen==&lt;br /&gt;
Wählen Sie dann auf der Seite für die Moduleinrichtung stets aus, welche Funktion Sie mit Barcodes erweitern möchten:&lt;br /&gt;
&lt;br /&gt;
*Verwaltung der Produkte&lt;br /&gt;
*Verwaltung der Partner&lt;br /&gt;
&lt;br /&gt;
==Manager zur automatischen Definition von Barcode-Nummern (Produkt)==&lt;br /&gt;
Aktivieren Sie das Nummerierungsmodul, das Sie zum Vorschlagen und Validieren von Barcode-Nummern für Produkte verwenden möchten. Definieren Sie auch eine Maske, damit die automatische Nummerierung funktioniert.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie z. B. bei der vorherigen Einrichtung das EAN-Format ( http://en.wikipedia.org/wiki/International_Article_Number_(EAN) ) für Produkte gewählt haben, können Sie den Wert auf folgende Weise eingeben:&lt;br /&gt;
&amp;lt;syntaxHighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
300999{000000}&lt;br /&gt;
&amp;lt;/syntaxHighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Where 300 is the country number (See http://www.gs1.org/barcodes/support/prefix_list)&lt;br /&gt;
*999 is the Company number (according to country it may have more digits). To get a number for your company, you must contact the GS1 for your country: http://www.gs1.org/contact&lt;br /&gt;
*{000000} is the product number. You decide this number. It is counter with maximum 6 digits (according to country it may have less digits). Length is (8 - number of digits for your company number).&lt;br /&gt;
*Checksum digit is not required for EAN13 (it is added automatically)&lt;br /&gt;
&lt;br /&gt;
Note: A barcode EAN13 identify in most cases a product (as a template), like do the reference of a product (also called &#039;&#039;&#039;Part number&#039;&#039;&#039;). Identification of the serial or lot can be done with the &#039;&#039;&#039;Serial No&#039;&#039;&#039; also called &#039;&#039;&#039;SSN&#039;&#039;&#039;, &#039;&#039;&#039;S/N&#039;&#039;&#039;, or &#039;&#039;&#039;SN&#039;&#039;&#039; or the &#039;&#039;&#039;Product No&#039;&#039;&#039;. Serial and Product are sometimes an autonomous bar code number, sometimes included into a EAN128 code: http://www.barcodeisland.com/uccean128.phtml. A serial may be a lot or a unique instance of a product (that is a lot of 1).&lt;br /&gt;
&lt;br /&gt;
Note: The &#039;&#039;&#039;SKU&#039;&#039;&#039; is a generic term to say: &amp;quot;The ID enough accurate to manage stock&amp;quot;. So SKU depends if you use lot or not. It can be a &#039;&#039;&#039;Part number&#039;&#039;&#039; or a &#039;&#039;&#039;Serial No&#039;&#039;&#039;. Best thing is to avoid using this term to avoid confusion.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
Once the setup step is finished, you will see a new field &amp;quot;bar code&amp;quot; on some screens, depending on what you choosed for features to enhance (third party screen and/or product screen).&lt;br /&gt;
You can then enter barcode values in such fields, using keyboard or barcode scanner:&lt;br /&gt;
==Using keyboard==&lt;br /&gt;
Just enter the number represented into the barcode. This suppose that number was printed under barcode graphic. This will be the case if you print the barcode stickker using the &amp;quot;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&#039;&#039;&#039;Print barcode&#039;&#039;&#039;&#039;&#039;&#039;&amp;quot; feature provided with Dolibarr 3.6+ (menu &#039;&#039;&#039;Tools&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Using barcode scanner==&lt;br /&gt;
If barcode number is not visible, or if you don&#039;t want to loose time typing all numbers, you can use a hardware barcode scanner. To be compatible with Dolibarr, your barcode scanner must support the &amp;quot;keyboard emulation&amp;quot;: When you scan the barcode, it is like when typing the number from the keyboard.&lt;br /&gt;
To find a barcode scanner supporting such emulation, you must have a look a technical specification of barcode. Scanner must provide the term:&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;HID&amp;quot; mode (for Human Interface Device)&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;Keyboard Wedge&amp;quot; or &amp;quot;Wedge&amp;quot; interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information on page: http://www.taltech.com/barcodesoftware/articles/which_barcode_scanner_interface&lt;br /&gt;
&lt;br /&gt;
You can find bar code reader to read barcode EAN13 (13 numbers) and others to read barcode code-39 (numeric, unlimited number of characters) or barcode code-128 (alphabet, unlimited number of characters). Most barcode scanner read all formats.&lt;br /&gt;
&lt;br /&gt;
*EAN13 is used to define a product.&lt;br /&gt;
*code-39 is used for stock tracking (serial number with numeric character only).&lt;br /&gt;
*code-128 is used for stock tracking (serial number with numeric and alpha character).&lt;br /&gt;
&lt;br /&gt;
To test your scanner can read code-128, you can use this page (print it before, most scanner don&#039;t work when used directly on computer screen display):&lt;br /&gt;
http://www.softmatic.com/faq-2-7.html&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
*MOTOROla DS4208&lt;br /&gt;
*Datalogic QW2120&lt;br /&gt;
*EAN: 6913280798816&lt;br /&gt;
&lt;br /&gt;
This is another example tested successfuly on a Linux Ubuntu:&lt;br /&gt;
&lt;br /&gt;
*http://www.amazon.fr/gp/product/B008RG3EG6&lt;br /&gt;
*Just plug the USB cable of scanner into your computer, then you need to scan the barcode on provided manuel to set the correct keyboard. Once done, every scan will be output as if you use the keyboard.&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=M%C3%B3dulo_C%C3%B3digo_de_barra_(desarrollador)&amp;diff=54796</id>
		<title>Módulo Código de barra (desarrollador)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=M%C3%B3dulo_C%C3%B3digo_de_barra_(desarrollador)&amp;diff=54796"/>
		<updated>2022-09-25T07:38:47Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Modul_Barcode_(Developer) --&amp;gt;&lt;br /&gt;
[[de:Modul_Barcode_(Developer)]]&lt;br /&gt;
[[fr:Module_Codes_Barre_(développeur)]]&lt;br /&gt;
[[es:Módulo_Código_de_barra_(desarrollador)]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:BarcodeEs]]&lt;br /&gt;
[[Category:Listado_de_Módulos_(desarrollador)]]&lt;br /&gt;
{{TemplateDocDesarrollo}}&lt;br /&gt;
{{TemplateModES_Desarrollador}}&lt;br /&gt;
{{BasculeDevUsuario|&lt;br /&gt;
nom=Código de barra|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=Esta página|&lt;br /&gt;
userdoc=[[Módulo Código de barra]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Función =&lt;br /&gt;
Gestión de códigos de barra. Permite la posibilidad de indicar un valor de código de barras a los productos o los terceros. &lt;br /&gt;
&lt;br /&gt;
= Permisos =&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;lire&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;creer&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;supprimer&lt;br /&gt;
&lt;br /&gt;
= Tablas SQL =&lt;br /&gt;
Ninguna&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Codes_Barre_(d%C3%A9veloppeur)&amp;diff=54795</id>
		<title>Module Codes Barre (développeur)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Codes_Barre_(d%C3%A9veloppeur)&amp;diff=54795"/>
		<updated>2022-09-25T07:38:02Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Modul_Barcode_(Developer) --&amp;gt;&lt;br /&gt;
[[de:Modul_Barcode_(Developer)]]&lt;br /&gt;
[[fr:Module_Codes_Barre_(développeur)]]&lt;br /&gt;
[[es:Módulo_Código_de_barra_(desarrollador)]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Codes barre]]&lt;br /&gt;
[[Category:Liste des Modules (développeur)‎]]&lt;br /&gt;
{{TemplateDocDev}}&lt;br /&gt;
{{TemplateModFR_Développeur}}&lt;br /&gt;
{{BasculeDevUser|&lt;br /&gt;
nom=Barcode|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=Cette page|&lt;br /&gt;
userdoc=[[Module Codes Barre]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fonction =&lt;br /&gt;
Gestion des codes barre. Ce module permet d&#039;ajouter la possibilité de saisir une valeur de code barre sur les produits ou les tiers.&lt;br /&gt;
&lt;br /&gt;
= Permissions =&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;lire&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;creer&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;supprimer&lt;br /&gt;
&lt;br /&gt;
= Tables SQL =&lt;br /&gt;
Aucune.&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54794</id>
		<title>Modul Barcode (Developer)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54794"/>
		<updated>2022-09-25T07:36:04Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Modul_Barcode_(Developer) --&amp;gt;&lt;br /&gt;
[[de:Modul_Barcode_(Developer)]]&lt;br /&gt;
[[fr:Module_Codes_Barre_(développeur)]]&lt;br /&gt;
[[es:Módulo_Código_de_barra_(desarrollador)]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
[[Category:List of Modules (developer)‎]]&lt;br /&gt;
{{TemplateDocDevDe}}&lt;br /&gt;
{{TemplateModDE}}&lt;br /&gt;
{{BasculeDevUserDe|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55| &lt;br /&gt;
devdoc=This page|&lt;br /&gt;
userdoc=[[Module Barcode]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Funktion =&lt;br /&gt;
Verwaltung von Barcodes.&lt;br /&gt;
Dies fügt die Möglichkeit hinzu, einen Barcodewert für Produkte oder Partner zu erstellen und als grafische Barcodes darzustellen, wo es passt.&lt;br /&gt;
&lt;br /&gt;
= Permissions =&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;lire&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;creer&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;supprimer&lt;br /&gt;
&lt;br /&gt;
= Tables SQL =&lt;br /&gt;
Keine&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54793</id>
		<title>Modul Barcode (Developer)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54793"/>
		<updated>2022-09-25T07:34:54Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Modul_Barcode_(Developer) --&amp;gt;&lt;br /&gt;
[[de:Modul_Barcode_(Developer)]]&lt;br /&gt;
[[fr:Module_Codes_Barre_(développeur)]]&lt;br /&gt;
[[es:Módulo_Código_de_barra_(desarrollador)]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
[[Category:List of Modules (developer)‎]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateModEN}}&lt;br /&gt;
{{BasculeDevUserEn|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55| &lt;br /&gt;
devdoc=This page|&lt;br /&gt;
userdoc=[[Module Barcode]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Funktion =&lt;br /&gt;
Verwaltung von Barcodes.&lt;br /&gt;
Dies fügt die Möglichkeit hinzu, einen Barcodewert für Produkte oder Partner zu erstellen und als grafische Barcodes darzustellen, wo es passt.&lt;br /&gt;
&lt;br /&gt;
= Permissions =&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;lire&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;creer&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;supprimer&lt;br /&gt;
&lt;br /&gt;
= Tables SQL =&lt;br /&gt;
Keine&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54792</id>
		<title>Modul Barcode (Developer)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54792"/>
		<updated>2022-09-25T07:30:39Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : Modul_Barcode_(Developer) --&amp;gt;&lt;br /&gt;
[[en:Modul_Barcode_(Developer)]]&lt;br /&gt;
[[fr:Module_Codes_Barre_(développeur)]]&lt;br /&gt;
[[es:Módulo_Código_de_barra_(desarrollador)]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
[[Category:List of Modules (developer)‎]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateModEN}}&lt;br /&gt;
{{BasculeDevUserEn|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55| &lt;br /&gt;
devdoc=This page|&lt;br /&gt;
userdoc=[[Module Barcode]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Funktion =&lt;br /&gt;
Verwaltung von Barcodes.&lt;br /&gt;
Dies fügt die Möglichkeit hinzu, einen Barcodewert für Produkte oder Partner zu erstellen und als grafische Barcodes darzustellen, wo es passt.&lt;br /&gt;
&lt;br /&gt;
= Permissions =&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;lire&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;creer&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;supprimer&lt;br /&gt;
&lt;br /&gt;
= Tables SQL =&lt;br /&gt;
Keine&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54787</id>
		<title>Modul Barcode (Developer)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Modul_Barcode_(Developer)&amp;diff=54787"/>
		<updated>2022-09-25T07:28:52Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Created page with &amp;quot;&amp;lt;!-- BEGIN origin interlang links --&amp;gt; &amp;lt;!-- You can edit this section but do NOT remove these comments      Links below will be automatically replicated on translated pages by...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
[[fr:Module_Codes_Barre_(développeur)]]&lt;br /&gt;
[[es:Módulo_Código_de_barra_(desarrollador)]]&lt;br /&gt;
[[de:Modul_Barcode_(Developer)]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
[[Category:List of Modules (developer)‎]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateModEN}}&lt;br /&gt;
{{BasculeDevUserEn|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55| &lt;br /&gt;
devdoc=This page|&lt;br /&gt;
userdoc=[[Module Barcode]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Funktion =&lt;br /&gt;
Verwaltung von Barcodes.&lt;br /&gt;
Dies fügt die Möglichkeit hinzu, einen Barcodewert für Produkte oder Dritte einzugeben und grafische Barcodes zu sehen, wo es passt.&lt;br /&gt;
&lt;br /&gt;
= Permissions =&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;lire&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;creer&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;supprimer&lt;br /&gt;
&lt;br /&gt;
= Tables SQL =&lt;br /&gt;
None&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Barcode_(developer)&amp;diff=54784</id>
		<title>Module Barcode (developer)</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Barcode_(developer)&amp;diff=54784"/>
		<updated>2022-09-25T07:25:55Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
[[fr:Module_Codes_Barre_(développeur)]]&lt;br /&gt;
[[es:Módulo_Código_de_barra_(desarrollador)]]&lt;br /&gt;
[[de:Modul_Barcode_(Developer)]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
[[Category:List of Modules (developer)‎]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateModEN}}&lt;br /&gt;
{{BasculeDevUserEn|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55| &lt;br /&gt;
devdoc=This page|&lt;br /&gt;
userdoc=[[Module Barcode]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Function =&lt;br /&gt;
Management of barcode.&lt;br /&gt;
This add ability to enter a barcode value for products or third parties and to see graphical barcodes where it suits.&lt;br /&gt;
&lt;br /&gt;
= Permissions =&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;lire&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;creer&lt;br /&gt;
*-&amp;gt;barcode-&amp;gt;supprimer&lt;br /&gt;
&lt;br /&gt;
= Tables SQL =&lt;br /&gt;
None&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_Barcode&amp;diff=54780</id>
		<title>Module Barcode</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_Barcode&amp;diff=54780"/>
		<updated>2022-09-25T07:22:34Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
[[fr:Module_Codes_Barre]]&lt;br /&gt;
[[es:Módulo_Código_de_barra]]&lt;br /&gt;
[[de:Modul_Barcode]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Barcode]]&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
{{TemplateModEN Developer}}&lt;br /&gt;
{{BasculeDevUserEn|&lt;br /&gt;
name=Barcode|&lt;br /&gt;
num=55|&lt;br /&gt;
devdoc=[[Module Barcode (developer)]]|&lt;br /&gt;
userdoc=This page}}&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
The bar code module allows you to add bar codes where it can be usefull (like on products cards or third parties).&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
{{NoInstallModuleEn}}&lt;br /&gt;
&lt;br /&gt;
=Configuration=&lt;br /&gt;
{{ActivationModuleEn}}&lt;br /&gt;
&lt;br /&gt;
==Barcode encoding type==&lt;br /&gt;
On the setup page, you choose for each barcode format you want to support, the engine that will build the graphical output (image) of bar code.&lt;br /&gt;
&lt;br /&gt;
The engines available by default and supported by Dolibarr developers are the Dolibarr internal engine based on &#039;&#039;&#039;php-barcode&#039;&#039;&#039; and TCPDF-barcode which makes use of the barcode generator available in the TCPDF library.&lt;br /&gt;
&lt;br /&gt;
Eventually, you can install the program genbarcode (http://www.ashberg.de/php-barcode/download/#genbarcode) to have more format supported by this engine. Sources for the command line &#039;&#039;&#039;genbarcode&#039;&#039;&#039; program is also available here: [[File:Genbarcode-0.4.tar.gz]]&lt;br /&gt;
&lt;br /&gt;
You can also install new barcode generator engines (see in download area of http://www.dolibarr.org) to support more format.&lt;br /&gt;
&lt;br /&gt;
==Other options==&lt;br /&gt;
Then, always on module setup page, choose which feature you want to enhance with barcodes:&lt;br /&gt;
&lt;br /&gt;
*Products management&lt;br /&gt;
*Third parties management&lt;br /&gt;
&lt;br /&gt;
==Manager to auto define barcode numbers (Product)==&lt;br /&gt;
Enable numbering module you want to use for suggesting and validating barcode number for products. Define also mask to make the automatic numbering generation working.&lt;br /&gt;
&lt;br /&gt;
For example, if you choosed to use the EAN format ( http://en.wikipedia.org/wiki/International_Article_Number_(EAN) ) for products in previous setup, you can enter the value:&lt;br /&gt;
&amp;lt;syntaxHighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
300999{000000}&lt;br /&gt;
&amp;lt;/syntaxHighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Where 300 is the country number (See http://www.gs1.org/barcodes/support/prefix_list)&lt;br /&gt;
*999 is the Company number (according to country it may have more digits). To get a number for your company, you must contact the GS1 for your country: http://www.gs1.org/contact&lt;br /&gt;
*{000000} is the product number. You decide this number. It is counter with maximum 6 digits (according to country it may have less digits). Length is (8 - number of digits for your company number).&lt;br /&gt;
*Checksum digit is not required for EAN13 (it is added automatically)&lt;br /&gt;
&lt;br /&gt;
Note: A barcode EAN13 identify in most cases a product (as a template), like do the reference of a product (also called &#039;&#039;&#039;Part number&#039;&#039;&#039;). Identification of the serial or lot can be done with the &#039;&#039;&#039;Serial No&#039;&#039;&#039; also called &#039;&#039;&#039;SSN&#039;&#039;&#039;, &#039;&#039;&#039;S/N&#039;&#039;&#039;, or &#039;&#039;&#039;SN&#039;&#039;&#039; or the &#039;&#039;&#039;Product No&#039;&#039;&#039;. Serial and Product are sometimes an autonomous bar code number, sometimes included into a EAN128 code: http://www.barcodeisland.com/uccean128.phtml. A serial may be a lot or a unique instance of a product (that is a lot of 1).&lt;br /&gt;
&lt;br /&gt;
Note: The &#039;&#039;&#039;SKU&#039;&#039;&#039; is a generic term to say: &amp;quot;The ID enough accurate to manage stock&amp;quot;. So SKU depends if you use lot or not. It can be a &#039;&#039;&#039;Part number&#039;&#039;&#039; or a &#039;&#039;&#039;Serial No&#039;&#039;&#039;. Best thing is to avoid using this term to avoid confusion.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
Once the setup step is finished, you will see a new field &amp;quot;bar code&amp;quot; on some screens, depending on what you choosed for features to enhance (third party screen and/or product screen).&lt;br /&gt;
You can then enter barcode values in such fields, using keyboard or barcode scanner:&lt;br /&gt;
==Using keyboard==&lt;br /&gt;
Just enter the number represented into the barcode. This suppose that number was printed under barcode graphic. This will be the case if you print the barcode stickker using the &amp;quot;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&#039;&#039;&#039;Print barcode&#039;&#039;&#039;&#039;&#039;&#039;&amp;quot; feature provided with Dolibarr 3.6+ (menu &#039;&#039;&#039;Tools&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Using barcode scanner==&lt;br /&gt;
If barcode number is not visible, or if you don&#039;t want to loose time typing all numbers, you can use a hardware barcode scanner. To be compatible with Dolibarr, your barcode scanner must support the &amp;quot;keyboard emulation&amp;quot;: When you scan the barcode, it is like when typing the number from the keyboard.&lt;br /&gt;
To find a barcode scanner supporting such emulation, you must have a look a technical specification of barcode. Scanner must provide the term:&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;HID&amp;quot; mode (for Human Interface Device)&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;Keyboard Wedge&amp;quot; or &amp;quot;Wedge&amp;quot; interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information on page: http://www.taltech.com/barcodesoftware/articles/which_barcode_scanner_interface&lt;br /&gt;
&lt;br /&gt;
You can find bar code reader to read barcode EAN13 (13 numbers) and others to read barcode code-39 (numeric, unlimited number of characters) or barcode code-128 (alphabet, unlimited number of characters). Most barcode scanner read all formats.&lt;br /&gt;
&lt;br /&gt;
*EAN13 is used to define a product.&lt;br /&gt;
*code-39 is used for stock tracking (serial number with numeric character only).&lt;br /&gt;
*code-128 is used for stock tracking (serial number with numeric and alpha character).&lt;br /&gt;
&lt;br /&gt;
To test your scanner can read code-128, you can use this page (print it before, most scanner don&#039;t work when used directly on computer screen display):&lt;br /&gt;
http://www.softmatic.com/faq-2-7.html&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
*MOTOROla DS4208&lt;br /&gt;
*Datalogic QW2120&lt;br /&gt;
*EAN: 6913280798816&lt;br /&gt;
&lt;br /&gt;
This is another example tested successfuly on a Linux Ubuntu:&lt;br /&gt;
&lt;br /&gt;
*http://www.amazon.fr/gp/product/B008RG3EG6&lt;br /&gt;
*Just plug the USB cable of scanner into your computer, then you need to scan the barcode on provided manuel to set the correct keyboard. Once done, every scan will be output as if you use the keyboard.&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54765</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54765"/>
		<updated>2022-09-24T10:20:07Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Einen Konflikt lösen */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn ein Commit bereits gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die in Ihrer GIT-Instanz vorgenommen wurden, in die offizielle Dolibarr-Instanz einzubinden:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie in die GitHub-Weboberfläche Ihrer geforkten Git-Instanz.&lt;br /&gt;
*Klicken Sie auf die kleine Schaltfläche &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Wählen Sie den Commit aus, dessen Aufnahme Sie beantragen, und validieren Sie ihn.&lt;br /&gt;
&lt;br /&gt;
=Anfrage stellen, um die Änderungen in das offizielle Projekt zu übernehmen=&lt;br /&gt;
Sobald Sie einen oder mehrere Commits in Ihren remote Fork-Bereich auf Github gepusht haben, können Sie das Dolibarr-Kernteam bitten, diese in das offizielle Projekt aufzunehmen.&lt;br /&gt;
Folgen Sie dazu dieser Anleitung: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Hinzufügen eines externen Commits zum aktuellen Repository=&lt;br /&gt;
Einige Entwickler fügen ihre Änderungen durch Commits in ihr eigenes Git-Repository hinzu, nachdem sie das Projekt geforkt haben. Wenn Sie daran interessiert sind, diese Änderungen zu erhalten, können Sie sie mit den folgenden Schritten importieren.&lt;br /&gt;
&lt;br /&gt;
Hierfür benötigen Sie sowohl Eclipse als auch das GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie zunächst in die GIT-Setup-Ansicht und klicken Sie mit der rechten Maustaste auf &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; in Ihrem Eclipse-Git-Workspace und wählen Sie &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Geben Sie den Namen des entfernten Forks ein, den der Entwickler erstellt hat (in den meisten Fällen ist es das Git-Login des Entwicklers). Zum Beispiel: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Wählen Sie auch &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Geben Sie die URI des Git-Repositorys des Entwicklers ein. Zum Beispiel: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Fügen Sie auch einen refspec-Wert hinzu, um den Branch anzugeben, den Sie abrufen möchten. Zum Beispiel: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Klicken Sie auf &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. Es wird ein neuer Eintrag in &amp;quot;Remote Tracking&amp;quot; hinzugefügt, der es ermöglicht, Commits in diesem Zweig zu lesen/zu schreiben.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Suchen Sie nach dem String &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, dann sehen Sie den Teil des Codes, der zwischen &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; und &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot; als Konflikt markiert ist. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; und &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot; entfernen. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54764</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54764"/>
		<updated>2022-09-24T10:17:02Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Hinzufügen eines externen Commits zum aktuellen Repository */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn ein Commit bereits gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die in Ihrer GIT-Instanz vorgenommen wurden, in die offizielle Dolibarr-Instanz einzubinden:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie in die GitHub-Weboberfläche Ihrer geforkten Git-Instanz.&lt;br /&gt;
*Klicken Sie auf die kleine Schaltfläche &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Wählen Sie den Commit aus, dessen Aufnahme Sie beantragen, und validieren Sie ihn.&lt;br /&gt;
&lt;br /&gt;
=Anfrage stellen, um die Änderungen in das offizielle Projekt zu übernehmen=&lt;br /&gt;
Sobald Sie einen oder mehrere Commits in Ihren remote Fork-Bereich auf Github gepusht haben, können Sie das Dolibarr-Kernteam bitten, diese in das offizielle Projekt aufzunehmen.&lt;br /&gt;
Folgen Sie dazu dieser Anleitung: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Hinzufügen eines externen Commits zum aktuellen Repository=&lt;br /&gt;
Einige Entwickler fügen ihre Änderungen durch Commits in ihr eigenes Git-Repository hinzu, nachdem sie das Projekt geforkt haben. Wenn Sie daran interessiert sind, diese Änderungen zu erhalten, können Sie sie mit den folgenden Schritten importieren.&lt;br /&gt;
&lt;br /&gt;
Hierfür benötigen Sie sowohl Eclipse als auch das GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie zunächst in die GIT-Setup-Ansicht und klicken Sie mit der rechten Maustaste auf &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; in Ihrem Eclipse-Git-Workspace und wählen Sie &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Geben Sie den Namen des entfernten Forks ein, den der Entwickler erstellt hat (in den meisten Fällen ist es das Git-Login des Entwicklers). Zum Beispiel: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Wählen Sie auch &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Geben Sie die URI des Git-Repositorys des Entwicklers ein. Zum Beispiel: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Fügen Sie auch einen refspec-Wert hinzu, um den Branch anzugeben, den Sie abrufen möchten. Zum Beispiel: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Klicken Sie auf &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. Es wird ein neuer Eintrag in &amp;quot;Remote Tracking&amp;quot; hinzugefügt, der es ermöglicht, Commits in diesem Zweig zu lesen/zu schreiben.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54763</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54763"/>
		<updated>2022-09-24T10:16:11Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Hinzufügen eines externen Commits zum aktuellen Repository */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn ein Commit bereits gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die in Ihrer GIT-Instanz vorgenommen wurden, in die offizielle Dolibarr-Instanz einzubinden:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie in die GitHub-Weboberfläche Ihrer geforkten Git-Instanz.&lt;br /&gt;
*Klicken Sie auf die kleine Schaltfläche &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Wählen Sie den Commit aus, dessen Aufnahme Sie beantragen, und validieren Sie ihn.&lt;br /&gt;
&lt;br /&gt;
=Anfrage stellen, um die Änderungen in das offizielle Projekt zu übernehmen=&lt;br /&gt;
Sobald Sie einen oder mehrere Commits in Ihren remote Fork-Bereich auf Github gepusht haben, können Sie das Dolibarr-Kernteam bitten, diese in das offizielle Projekt aufzunehmen.&lt;br /&gt;
Folgen Sie dazu dieser Anleitung: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Hinzufügen eines externen Commits zum aktuellen Repository=&lt;br /&gt;
Einige Entwickler fügen ihre Änderungen durch Commits in ihr eigenes Git-Repository hinzu, nachdem sie das Projekt geforkt haben. Wenn Sie daran interessiert sind, diese Änderungen zu erhalten, können Sie sie mit den folgenden Schritten importieren.&lt;br /&gt;
&lt;br /&gt;
Hierfür benötigen Sie sowohl Eclipse als auch das GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie zunächst in die GIT-Setup-Ansicht und klicken Sie mit der rechten Maustaste auf &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; in Ihrem Eclipse-Git-Workspace und wählen Sie &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Geben Sie den Namen des entfernten Forks ein, den der Entwickler erstellt hat (in den meisten Fällen ist es das Git-Login des Entwicklers). Zum Beispiel: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Wählen Sie auch &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Geben Sie die URI des Git-Repositorys des Entwicklers ein. Zum Beispiel: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Fügen Sie auch einen refspec-Wert hinzu, um den Branch anzugeben, den Sie abrufen möchten. Zum Beispiel: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Klicken Sie auf &amp;quot;&#039;&#039;&#039;Speichern und Abrufen&#039;&#039;&#039;&amp;quot;. Es wird ein neuer Eintrag in &amp;quot;Remote Tracking&amp;quot; hinzugefügt, der es ermöglicht, Commits in diesem Zweig zu lesen/zu schreiben.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54762</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54762"/>
		<updated>2022-09-24T10:11:49Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Add an external commit into current repository */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn ein Commit bereits gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die in Ihrer GIT-Instanz vorgenommen wurden, in die offizielle Dolibarr-Instanz einzubinden:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie in die GitHub-Weboberfläche Ihrer geforkten Git-Instanz.&lt;br /&gt;
*Klicken Sie auf die kleine Schaltfläche &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Wählen Sie den Commit aus, dessen Aufnahme Sie beantragen, und validieren Sie ihn.&lt;br /&gt;
&lt;br /&gt;
=Anfrage stellen, um die Änderungen in das offizielle Projekt zu übernehmen=&lt;br /&gt;
Sobald Sie einen oder mehrere Commits in Ihren remote Fork-Bereich auf Github gepusht haben, können Sie das Dolibarr-Kernteam bitten, diese in das offizielle Projekt aufzunehmen.&lt;br /&gt;
Folgen Sie dazu dieser Anleitung: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Hinzufügen eines externen Commits zum aktuellen Repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
Einige Entwickler fügen ihre Änderungen durch Commits in ihr eigenes Git-Repository hinzu, nachdem sie das Projekt geforkt haben. Wenn Sie daran interessiert sind, diese Änderungen zu erhalten, können Sie sie mit den folgenden Schritten importieren.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54761</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54761"/>
		<updated>2022-09-24T10:07:28Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Ask official project to include your changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn ein Commit bereits gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die in Ihrer GIT-Instanz vorgenommen wurden, in die offizielle Dolibarr-Instanz einzubinden:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie in die GitHub-Weboberfläche Ihrer geforkten Git-Instanz.&lt;br /&gt;
*Klicken Sie auf die kleine Schaltfläche &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Wählen Sie den Commit aus, dessen Aufnahme Sie beantragen, und validieren Sie ihn.&lt;br /&gt;
&lt;br /&gt;
=Anfrage stellen, um die Änderungen in das offizielle Projekt zu übernehmen=&lt;br /&gt;
Sobald Sie einen oder mehrere Commits in Ihren remote Fork-Bereich auf Github gepusht haben, können Sie das Dolibarr-Kernteam bitten, diese in das offizielle Projekt aufzunehmen.&lt;br /&gt;
Folgen Sie dazu dieser Anleitung: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54760</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54760"/>
		<updated>2022-09-24T10:05:06Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Commit und Veröffentlichen von Änderungen */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn ein Commit bereits gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die in Ihrer GIT-Instanz vorgenommen wurden, in die offizielle Dolibarr-Instanz einzubinden:&lt;br /&gt;
&lt;br /&gt;
*Gehen Sie in die GitHub-Weboberfläche Ihrer geforkten Git-Instanz.&lt;br /&gt;
*Klicken Sie auf die kleine Schaltfläche &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Wählen Sie den Commit aus, dessen Aufnahme Sie beantragen, und validieren Sie ihn.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54759</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54759"/>
		<updated>2022-09-24T10:01:40Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Commit und Veröffentlichen von Änderungen */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn ein Commit bereits gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die in Ihrer GIT-Instanz vorgenommen wurden, in die offizielle Dolibarr-Instanz einzubinden:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54758</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54758"/>
		<updated>2022-09-24T09:24:11Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Commit und Veröffentlichen von Änderungen */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface, wenn der Commit noch nicht gepusht wurde:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54757</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54757"/>
		<updated>2022-09-24T09:13:40Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch werden Hinzufügungen und Änderungen in Ihrem lokalen Branch gespeichert.&lt;br /&gt;
&lt;br /&gt;
Um sie auf den GIT-Repository-Server zu pushen,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Klicken Sie mit der rechten Maustaste auf das Projekt und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um ein Commit abzubrechen:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54756</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54756"/>
		<updated>2022-09-24T09:09:05Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Commit und Veröffentlichen von Änderungen */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um Änderungen, die Sie in Ihrem lokalen Repository vorgenommen haben, in den GIT-Index aufzunehmen, führen Sie einen commit-Befehl für diesen Index durch:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse: Klicken Sie mit der rechten Maustaste auf die zu übertragende Datei oder das Verzeichnis. Wählen Sie die Datei zum Hinzufügen/Entfernen/Aktualisieren in den nächsten Commit.&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54755</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54755"/>
		<updated>2022-09-24T09:06:26Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Commit and publish your changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit und Veröffentlichen von Änderungen=&lt;br /&gt;
Um alle Änderungen zu sehen, die Sie in Ihrem Arbeitsverzeichnis vorgenommen haben und die darauf warten, in Git hinzugefügt zu werden:&lt;br /&gt;
&lt;br /&gt;
*Mit GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54754</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54754"/>
		<updated>2022-09-24T07:25:12Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Update your repository */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update des Repository=&lt;br /&gt;
So aktualisieren Sie Ihren lokalen Workspace:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
Rechtsklick auf das Eclipse-Projekt und Auswahl von &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie in Ihrem Eclipse-Workspace Änderungen an Dateien vorgenommen haben, die in der GIT-Remote-Referenz geändert wurden, wird Ihr GIT-Client automatisch einen Merge durchführen.&lt;br /&gt;
&lt;br /&gt;
*Wenn es Konflikte gibt, wird der Merge alle Konfliktdateien als &amp;quot;Konflikt&amp;quot; markieren (siehe später, um diesen Zustand zu lösen).&lt;br /&gt;
*Wenn nicht, erhalten Sie alle Dateien in der neuen Version, einschließlich aller Ihrer Änderungen.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie bereits einige Dateien in Ihr lokales Repository übertragen haben, wird Ihr Workspace als &amp;quot;Zusammengeführt&amp;quot; markiert.&lt;br /&gt;
Alles was Sie tun müssen, ist ein Commit zu machen, um Ihr lokales Repository zu bestätigen, dass es sowohl Ihre Änderungen als auch die Änderungen anderer enthält.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Mit dem GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54753</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54753"/>
		<updated>2022-09-24T07:16:22Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Clone Prozess */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54752</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54752"/>
		<updated>2022-09-24T07:15:44Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Clone Prozess */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Dann ist der Prozess derselbe wie bei der Beschaffung von Quellen mit anonymen Zugriff.&lt;br /&gt;
&lt;br /&gt;
Die für den GIT-Clone zu verwendende URL ist dieselbe:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/Quelle&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Beachten Sie, dass es auch eine HTTPS-URL gibt, die aber manchmal offline ist (verwenden Sie also lieber die erste, ein Link mit HTTPS ist nur erforderlich, wenn Sie sich hinter einer Firewall befinden): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/Quelle&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54751</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54751"/>
		<updated>2022-09-24T07:14:46Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Fork Prozess */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Melden Sie sich bei Github mit den Login-Daten an, das Sie im vorherigen Schritt erstellt haben. Gehen Sie dann auf die Seite&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
und klicken Sie auf die Schaltfläche &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Dadurch wird eine Kopie (ein Fork) des Projekts in Ihrem eigenen Github-Bereich erstellt. Da Sie der Besitzer dieses Forks sind, haben Sie alle Rechte, die Sie für die nächsten Schritte benötigen.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54750</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54750"/>
		<updated>2022-09-24T07:13:21Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Voraussetzung */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,update_GIT_project_sources --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,update_GIT_project_sources]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien. Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Geben Sie zunächst den Wert des Repositorys mit den Referenzquellen in Ihr GIT-Client-Tool ein.&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse, gehen Sie in die Perspektive GIT, klicken Sie auf den Button &amp;quot;GIT Repository klonen&amp;quot;. Geben Sie die GIT-URL des Projekts ein, das Sie erhalten möchten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
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 &amp;quot;Fetch&amp;quot; aus der &amp;quot;Remotes&amp;quot;-Ansicht ausgewählt werden, aber versuchen Sie, nur den Branch auszuwählen, den Sie benötigen. Dies erspart Ihnen später Zeit und Probleme.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle:&lt;br /&gt;
&lt;br /&gt;
Richten Sie zunächst Ihren Git-Client ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dann klonen Sie das Repository lokal:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (nur lesen)&lt;br /&gt;
oder wenn Sie einen Fork von dolibarr github von der github-Weboberfläche erstellt haben&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (Lese- und Schreibzugriff)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hinweis: Wenn Sie sich hinter einer Firewall befinden, müssen Sie Ihre Proxy-Informationen einstellen und die alternative https-URL verwenden:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Sobald der Download abgeschlossen ist, müssen Sie wählen, an welchem Zweig Sie arbeiten möchten.&lt;br /&gt;
&lt;br /&gt;
*Mit GIT auf der Befehlszeilenschnittstelle;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Dadurch wird eine lokale Branche erstellt und automatisch ein Checkout durchgeführt.&lt;br /&gt;
&lt;br /&gt;
*Klicken Sie in Eclipse mit der rechten Maustaste auf &amp;quot;Branches - Remotes -&amp;quot; die Branche, die Sie lokal duplizieren möchten&amp;quot;.&lt;br /&gt;
Wählen Sie &amp;quot; Erstelle Branch&amp;quot; (und markieren Sie das Kästchen &amp;quot;Checkout&amp;quot;). Dadurch wird der Inhalt der Branche dupliziert, um lokal daran zu arbeiten, und Ihr &amp;quot;Arbeitsverzeichnis&amp;quot; wird aktualisiert, um an dieser Branche zu arbeiten.&lt;br /&gt;
&lt;br /&gt;
Erstellen Sie ein Eclipse-Projekt:&lt;br /&gt;
&lt;br /&gt;
Wenn Sie Eclipse verwenden, erstellen Sie, sobald die Verzweigung lokal erstellt wurde, ein PHP-Projekt aus dem Assistenten, indem Sie &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; wählen und das Verzeichnis auswählen, das Ihr lokales GIT-Repository ist (Wählen Sie nicht die Option, ein PHP-Projekt komplett neu zu erstellen).&lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf das Projekt in Ihrem Eclipse-Arbeitsbereich und wählen Sie &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Wählen Sie GIT und klicken Sie auf die Option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
Eine alternative Methode ist File-&amp;gt;Import, Git-&amp;gt;Project von Git, Wählen Sie das Git-Repository und Weiter, Assistent für neue Projekte verwenden -&amp;gt; Php-Projekt, geben Sie den Ordner Ihres lokalen GIT-Repositorys ein.&lt;br /&gt;
&lt;br /&gt;
Dann können Sie Eclipse so einstellen, dass es nicht alle Projektdateien für seine Build-Tools (Outline Scanner, TODO Scanner, Syntax Scanner...) scannt. Dies verhindert, dass Eclipse zu langsam ist. Klicken Sie dazu mit der rechten Maustaste auf das Projekt, wählen Sie Build Path und stellen Sie es wie im folgenden Screenshot ein.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Abrufen der letzten Version der Quellen über einen GitHub-Nutzerzugang=&lt;br /&gt;
==Voraussetzung==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann die Installation von &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Schnittstelle:&lt;br /&gt;
&lt;br /&gt;
Sie müssen zuvor ein Konto auf GitHub (https://github.com/) erstellen und ein öffentliches RSA- oder DSA-Zertifikat in Ihr Kontoprofil hochladen.&lt;br /&gt;
&lt;br /&gt;
Dann müssen Sie den GIT-Client installieren (GIT-Kommandozeilen-Tool unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; oder den GIT-Client für Windows unter https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork Prozess==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone Prozess==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
Gehen Sie nun in die Kommandozeile Ihres Git-Repositorys (unter Linux ist es in den meisten Fällen  &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) und geben Sie den Befehl git cherry-pick ein:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
wobei commitid der Wert der Commit-ID ist, die Sie erhalten möchten.&lt;br /&gt;
&lt;br /&gt;
Sobald dies erledigt ist, gehen Sie zurück zu Eclipse und aktualisieren Sie das Projekt. Sie werden sehen, dass geänderte Dateien mit Dekoratoren erscheinen (mit Konflikten, wenn es welche gibt).&lt;br /&gt;
&lt;br /&gt;
Wenn die Auswahl aufgrund von Konflikten fehlschlägt, können Sie den Versuch der Auswahl mit&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Einen Konflikt lösen=&lt;br /&gt;
Wenn eine Datei nach einem &amp;quot;Pull&amp;quot; als &amp;quot;Konflikt&amp;quot; markiert ist, öffnen Sie die Datei und bearbeiten Sie sie.&lt;br /&gt;
Rechercher la chaine &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, vous verrez la partie de code en conflit entre &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Bearbeiten Sie die Codezeilen manuell, um das Endergebnis zu erhalten, indem Sie auch die &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; et &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Klicken Sie dann mit der rechten Maustaste auf die Datei und wählen Sie &amp;quot; Hinzufügen&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Wenn Sie lieber alle Änderungen, die Sie an allen Dateien vorgenommen haben, vollständig rückgängig machen möchten (um Ihren Arbeitsbereich mit dem Inhalt des entfernten Repositoriums wiederherzustellen), können Sie einen Reset durchführen:&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse klicken Sie mit der rechten Maustaste auf die oberste Zeile des Projekts und wählen Sie &amp;quot;Zurücksetzen&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; und dann &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Bei Verwendung des GIT-Befehlszeilentools erreichen Sie dies mit dem Befehl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Taggen Sie die Quellen=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
Um ein Tag über eine Version zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
oder&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force wenn ein Tag bereits existiert, ermöglicht idcommit die Auswahl des zu taggenden Commits.&lt;br /&gt;
git push --tags   # Pour pousser le tags sur le serveur distant&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Um einen Tag zu löschen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push origin :x.y.z_YYYYMMDD    # Um die Löschung auf dem entfernten Server zu bestätigen&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Einen neue Branche erstellen=&lt;br /&gt;
Hier ist der Befehl, den Sie verwenden müssen, um einen neuen Zweig aus einem eigenen develop-Repository zu erstellen:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistiken=&lt;br /&gt;
Mit den GIT-Kommandozeilenwerkzeugen:&lt;br /&gt;
&lt;br /&gt;
Um die Anzahl der Änderungen zu zählen, die ein Entwickler zwischen Version x und y vorgenommen hat:&lt;br /&gt;
&lt;br /&gt;
*Zuerst führen Sie &amp;quot;git merge-base&amp;quot; aus, um die ID des letzten gemeinsamen Commits zwischen x und y zu erfahren.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base origin/3.1 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dann führen Sie git log aus, um eine Liste aller Änderungen von der letzten gemeinsamen Übertragung bis zur letzten Übertragung zu erhalten.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_found_at_previous_step..HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Um die Gesamtzahl der hinzugefügten/gelöschten Zeilen zu ermitteln:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zählen der endgültigen Änderungen zwischen einer Version x und y (dies unterscheidet sich von der vorherigen Zählung, da bei der vorherigen Zählung eine Änderung zweimal zu zwei verschiedenen Zeitpunkten durchgeführt werden kann, um unterschiedliche Änderungen vorzunehmen. Bei der zweiten Methode werden die Änderungen gezählt, die schließlich gefunden wurden, wenn die Änderungen beim ersten Versuch in Ordnung waren):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Verwenden Sie die gleiche Methode wie zuvor, aber anstatt git log auszuführen, führen Sie &#039;&#039;&#039;git diff&#039;&#039;&#039; aus.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_found_at_previous_step..HEAD | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Weitere Informationen über die Verwendung von GIT erhältlich unter: [http://wiki.eclipse.org/EGit/User_Guide ici].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54735</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54735"/>
		<updated>2022-09-23T15:25:39Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Voraussetzungen */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,_update_GIT_Projekt_Quellen --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien.&lt;br /&gt;
Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, für Windows ist der GIT-Client unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54734</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54734"/>
		<updated>2022-09-23T15:23:36Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: /* Prerequisite */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,_update_GIT_Projekt_Quellen --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien.&lt;br /&gt;
Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Voraussetzungen==&lt;br /&gt;
&lt;br /&gt;
*Mit Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
Zuerst müssen Sie eine funktionierende Installation von Eclipse haben. Das &#039;&#039;&#039;EGit&#039;&#039;&#039;-Plugin muss ebenfalls installiert worden sein.&lt;br /&gt;
Verwenden Sie dazu den &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; im Eclipse Menü, fügen Sie die GIT update URL hinzu: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Wählen Sie dann &#039;&#039;&#039;EGit&#039;&#039;&#039; zur Installation aus (JGit muss nicht ausgewählt werden) &lt;br /&gt;
&lt;br /&gt;
*Mit der GIT-Kommandozeilen-Client-Schnittstelle&lt;br /&gt;
&lt;br /&gt;
Sie müssen den GIT-Client installieren (das GIT-Befehlszeilentool wird unter Linux mit &amp;quot;sudo apt-get install git&amp;quot; installiert, oder der GIT-Client für Windows ist unter https://git-scm.com/download/win zu finden).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54733</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54733"/>
		<updated>2022-09-23T15:20:28Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,_update_GIT_Projekt_Quellen --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien.&lt;br /&gt;
Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen über einen anonymen GIT-Zugang abrufen=&lt;br /&gt;
Sie können diese Methode verwenden, wenn Sie keinen GIT-Zugang haben. Mit dieser Methode können Sie keine Änderungen einreichen. Wenn Sie also ein Entwickler sind, sollten Sie ein GitHub-Konto erstellen und die nächste Methode anstelle dieser Methode verwenden.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54732</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54732"/>
		<updated>2022-09-23T15:18:42Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,_update_GIT_Projekt_Quellen --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
Neue Dateien überschreiben alte Dateien.&lt;br /&gt;
Der Nachteil dieser Methode ist, dass Sie das Paket jedes Mal herunterladen und dekomprimieren müssen, wenn Sie Updates erhalten möchten. &lt;br /&gt;
&lt;br /&gt;
Entwickler sollten diese Methode nicht verwenden, um Quellen zu erhalten, sondern die nächste.&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GIT anonymous access=&lt;br /&gt;
You can use this method if you don&#039;t have any GIT access. With this method, you won&#039;t be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54731</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54731"/>
		<updated>2022-09-23T15:12:24Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,_update_GIT_Projekt_Quellen --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Letzte Version der Quellen durch tgz-Download abrufen=&lt;br /&gt;
Diese Methode kann auch von nicht-technischen Benutzern verwendet werden.&lt;br /&gt;
Sie ermöglicht es Ihnen, die Quellen des Hauptentwicklungszweigs (HEAD genannt) zu erhalten, indem Sie einfach eine Datei herunterladen: Diese Operation besteht darin, die letzte Version der Dolibarr-Dateien zu erhalten, die jede Nacht in eine tgz-Datei gepackt werden. Die Datei ist über einen Link verfügbar:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
New files overwrite old ones.&lt;br /&gt;
The inconvenient of this method is that you must download and uncompress package each time you want to get updates. &lt;br /&gt;
&lt;br /&gt;
Developers should not use this method to get sources but the next one.&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GIT anonymous access=&lt;br /&gt;
You can use this method if you don&#039;t have any GIT access. With this method, you won&#039;t be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54730</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54730"/>
		<updated>2022-09-23T15:10:10Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,_update_GIT_Projekt_Quellen --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources by tgz download=&lt;br /&gt;
This method can be used by non technical users.&lt;br /&gt;
It allows you to get sources of main development branch (called HEAD) by just downloading a file: This operation consist to get last version of Dolibarr files that are packaged each night into a tgz file. File is available with link:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
New files overwrite old ones.&lt;br /&gt;
The inconvenient of this method is that you must download and uncompress package each time you want to get updates. &lt;br /&gt;
&lt;br /&gt;
Developers should not use this method to get sources but the next one.&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GIT anonymous access=&lt;br /&gt;
You can use this method if you don&#039;t have any GIT access. With this method, you won&#039;t be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54729</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54729"/>
		<updated>2022-09-23T15:09:46Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Do NOT edit this section&lt;br /&gt;
     Links below are automatically managed by PolyglotBot&lt;br /&gt;
     You can edit links on the English source page : FAQ_Get,_update_GIT_Projekt_Quellen --&amp;gt;&lt;br /&gt;
[[en:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
{{TemplateDocDevDE}}&lt;br /&gt;
Hier finden Sie Informationen darüber, wie Sie die Quellen des Dolibarr-Projekts erhalten können. &lt;br /&gt;
Es werden mehrere Methoden beschrieben, aber wir empfehlen, die auf GitHub basierende Methode zu verwenden.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources by tgz download=&lt;br /&gt;
This method can be used by non technical users.&lt;br /&gt;
It allows you to get sources of main development branch (called HEAD) by just downloading a file: This operation consist to get last version of Dolibarr files that are packaged each night into a tgz file. File is available with link:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
New files overwrite old ones.&lt;br /&gt;
The inconvenient of this method is that you must download and uncompress package each time you want to get updates. &lt;br /&gt;
&lt;br /&gt;
Developers should not use this method to get sources but the next one.&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GIT anonymous access=&lt;br /&gt;
You can use this method if you don&#039;t have any GIT access. With this method, you won&#039;t be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54724</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54724"/>
		<updated>2022-09-23T15:07:54Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
[[de:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ DE]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
This is information on how you can get sources of Dolibarr project. &lt;br /&gt;
Several methods are described, but we recommand using the one based on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources by tgz download=&lt;br /&gt;
This method can be used by non technical users.&lt;br /&gt;
It allows you to get sources of main development branch (called HEAD) by just downloading a file: This operation consist to get last version of Dolibarr files that are packaged each night into a tgz file. File is available with link:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
New files overwrite old ones.&lt;br /&gt;
The inconvenient of this method is that you must download and uncompress package each time you want to get updates. &lt;br /&gt;
&lt;br /&gt;
Developers should not use this method to get sources but the next one.&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GIT anonymous access=&lt;br /&gt;
You can use this method if you don&#039;t have any GIT access. With this method, you won&#039;t be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54723</id>
		<title>FAQ Get, update GIT Projekt Quellen</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,_update_GIT_Projekt_Quellen&amp;diff=54723"/>
		<updated>2022-09-23T15:06:37Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: Created page with &amp;quot;Category:FAQ EN {{TemplateDocDevEn}} This is information on how you can get sources of Dolibarr project.  Several methods are described, but we recommand using the one bas...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:FAQ EN]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
This is information on how you can get sources of Dolibarr project. &lt;br /&gt;
Several methods are described, but we recommand using the one based on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources by tgz download=&lt;br /&gt;
This method can be used by non technical users.&lt;br /&gt;
It allows you to get sources of main development branch (called HEAD) by just downloading a file: This operation consist to get last version of Dolibarr files that are packaged each night into a tgz file. File is available with link:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
New files overwrite old ones.&lt;br /&gt;
The inconvenient of this method is that you must download and uncompress package each time you want to get updates. &lt;br /&gt;
&lt;br /&gt;
Developers should not use this method to get sources but the next one.&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GIT anonymous access=&lt;br /&gt;
You can use this method if you don&#039;t have any GIT access. With this method, you won&#039;t be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=FAQ_Get,update_GIT_project_sources&amp;diff=54720</id>
		<title>FAQ Get,update GIT project sources</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=FAQ_Get,update_GIT_project_sources&amp;diff=54720"/>
		<updated>2022-09-23T15:01:48Z</updated>

		<summary type="html">&lt;p&gt;Speaking services: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- BEGIN origin interlang links --&amp;gt;&lt;br /&gt;
&amp;lt;!-- You can edit this section but do NOT remove these comments&lt;br /&gt;
     Links below will be automatically replicated on translated pages by PolyglotBot --&amp;gt;&lt;br /&gt;
[[fr:FAQ_Récupérer,_mettre_à_jour_les_sources_GIT_du_projet]]&lt;br /&gt;
[[es:FAQ_Recuperar,_actualizar_GIT_fuentes_del_proyecto]]&lt;br /&gt;
[[de:FAQ_Get,_update_GIT_Projekt_Quellen]]&lt;br /&gt;
&amp;lt;!-- END interlang links --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ EN]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
This is information on how you can get sources of Dolibarr project. &lt;br /&gt;
Several methods are described, but we recommand using the one based on GitHub.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources by tgz download=&lt;br /&gt;
This method can be used by non technical users.&lt;br /&gt;
It allows you to get sources of main development branch (called HEAD) by just downloading a file: This operation consist to get last version of Dolibarr files that are packaged each night into a tgz file. File is available with link:&lt;br /&gt;
&lt;br /&gt;
{{LinkLastSnapshot}}&lt;br /&gt;
&lt;br /&gt;
New files overwrite old ones.&lt;br /&gt;
The inconvenient of this method is that you must download and uncompress package each time you want to get updates. &lt;br /&gt;
&lt;br /&gt;
Developers should not use this method to get sources but the next one.&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GIT anonymous access=&lt;br /&gt;
You can use this method if you don&#039;t have any GIT access. With this method, you won&#039;t be able to submit any changes, so, if you are a developer, it is recommended to create a GitHub account and use the next method instead of this one.&lt;br /&gt;
&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
First you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039; (No need to choose JGit) &lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface&lt;br /&gt;
&lt;br /&gt;
You need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
First, enter value of the repository with reference sources into your GIT client tool.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, go into perspective GIT, click onto button &amp;quot;Clone GIT repository&amp;quot;. Enter GIT URL of project to get.&lt;br /&gt;
&lt;br /&gt;
GIT Url for Dolibarr official source is:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Your Eclipse GIT client will ask you to choose the branches you are interested in. Branches not selected now could be selected later by doing a &amp;quot;Fetch&amp;quot; from the &amp;quot;Remotes&amp;quot; view, but try to choose only the branch you need. This will save you time and problems later.&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set Eclipse proxy credentials into Eclipse menu Windows - Preferences - General - Network connection and use the alternative URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
First setup your git client:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global user.name &amp;quot;Your Name&amp;quot;&lt;br /&gt;
git config --global user.email &amp;quot;user@domain.com&amp;quot;&lt;br /&gt;
git config --list&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Then clone repository locally:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git://github.com/Dolibarr/dolibarr.git (read only)&lt;br /&gt;
or if you created a fork of dolibarr github from github web interface&lt;br /&gt;
git@github.com:yourgitaccount/dolibarr.git (read and write access)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: if you are behind a firewall, you must set your porxy information and use the alternative https URL:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git config --global http.proxy http://proxyuser:proxypass@proxyserver:proxyport&lt;br /&gt;
git clone https://gitlogin:gitpassword@github.com/yourgitaccount/dolibarr.git dolibarr&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once this step is validated, your GIT client will download all files from remote GIT server. This may last several seconds or minutes.&lt;br /&gt;
&lt;br /&gt;
Once download is finished, you must choose which branch to us to work on.&lt;br /&gt;
&lt;br /&gt;
*With GIT on Command Line Interface;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git checkout develop&lt;br /&gt;
git checkout x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will create local branch and make checkout automatically.&lt;br /&gt;
&lt;br /&gt;
*With Eclipse, right click on &amp;quot;Branches - Remotes - The branch you want to duplicate locally&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Create Branch&amp;quot; (and check the box &amp;quot;Checkout&amp;quot;). This will duplicate content of branch to work on it locally and will refresh your &amp;quot;Working Directory&amp;quot; to work on this branch.&lt;br /&gt;
&lt;br /&gt;
Create Eclipse project:&lt;br /&gt;
&lt;br /&gt;
If using Eclipse, once your branch is created locally, create a PHP project from assistant by choosing &amp;quot;&#039;&#039;&#039;Create from existing project&#039;&#039;&#039;&amp;quot; and select directory that is your GIT local repository (Do not choose to create a PHP project from scratch).&lt;br /&gt;
Then right click on project from your Eclipse workspace and Choose &amp;quot;&#039;&#039;&#039;Team - Share&#039;&#039;&#039;&amp;quot;. Select GIT and click on option &amp;quot;&#039;&#039;&#039;Use or create repository in parent folder of project&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
An alternate method is File-&amp;gt;Import, Git-&amp;gt;Project from Git, Select the Git repository and Next, Use New project Wizard -&amp;gt; Php project, enter the folder of you GIT local repository.&lt;br /&gt;
&lt;br /&gt;
Then, you can setup Eclipse to avoid it to scan all project files for its build tools (Outline scanner, TODO scanner, syntax scanner...). This will avoid Eclipse to be too slow. For this, right click on project, choose Build Path and setup it like into following screenshot.&lt;br /&gt;
&lt;br /&gt;
[[File:Eclipse php build path.png|240px]]&lt;br /&gt;
&lt;br /&gt;
=Get last version of sources using a GitHub user access=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you must have a working install of Eclipse. &#039;&#039;&#039;EGit&#039;&#039;&#039; plugin must also have been installed.&lt;br /&gt;
For this, use the &#039;&#039;&#039;Find And Install process&#039;&#039;&#039; into Eclipse menu, add the GIT update URL: &lt;br /&gt;
 https://download.eclipse.org/egit/updates&lt;br /&gt;
Then choose to install &#039;&#039;&#039;EGit&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
You must before create an account on GitHub (https://github.com/) and upload a public RSA or DSA certificate into your account profile.&lt;br /&gt;
&lt;br /&gt;
Then, you need to install GIT client (GIT command line tool with Linux installed with &amp;quot;sudo apt-get install git&amp;quot;, or the GIT client for Windows found at https://git-scm.com/download/win).&lt;br /&gt;
&lt;br /&gt;
==Fork process==&lt;br /&gt;
Login to Github, with login you created in previous step. Then go onto page&lt;br /&gt;
&lt;br /&gt;
https://github.com/Dolibarr/dolibarr&lt;br /&gt;
&lt;br /&gt;
And click on button &amp;quot;Fork&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
This will create a copy (a fork) of project into your own github area. Because you will be the owner of this fork, you will have all permissions on it to be used in next steps.&lt;br /&gt;
&lt;br /&gt;
==Clone process==&lt;br /&gt;
Then process is same as getting sources with anonymous access.&lt;br /&gt;
&lt;br /&gt;
URL to use for GIT clone is same:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
git@github.com:YourGitHubLogin/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that a HTTPS URL is also available but it&#039;s sometimes offline (so prefer using first one, link with HTTPS is required only if you are behind a firewall): &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
https://yourgithublogin@github.com/Dolibarr/dolibarr.git&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=Update your repository=&lt;br /&gt;
To update your local workspace:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse IDE:&lt;br /&gt;
&lt;br /&gt;
right click on Eclipse project and select &amp;quot;Pull&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you made some changes into your Eclipse workspace on files that were changed into the GIT remote reference, your GIT client will make a merge automatically.&lt;br /&gt;
&lt;br /&gt;
*If there is conflicts, the merge will mark all conflict files as &amp;quot;conflict&amp;quot; (See later to solve this state).&lt;br /&gt;
*If not, you will get all new version files including all your changes.&lt;br /&gt;
&lt;br /&gt;
If you already have commited some files into your local repository, your workspace will be marked as &amp;quot;Merged&amp;quot;.&lt;br /&gt;
All you have to do is make a commit to validate your local repository as including your changes and changes made by others.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*With the GIT Command Line Client Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Commit and publish your changes=&lt;br /&gt;
To see all changes you made into your working directory and waiting to be added into Git:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git status&lt;br /&gt;
git diff subdir/filename&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add changes made into your local repository into the GIT index, then commit this index :&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on file or directory to commit. Select file to add/remove/update into commit.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git commit -a -m &amp;quot;Commit text&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This will save add and changes into your local branch.&lt;br /&gt;
&lt;br /&gt;
To push them on the GIT repository server,&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: right click on project and choose &amp;quot;&#039;&#039;&#039;Team - Push to Upstream&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To cancel a commit:&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was not already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --soft HEAD~1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*With GIT Command Line Interface, if commit was already pushed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git revert IdCommit  or  git revert HEAD  (for last commit)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To merge changes done into your forked GIT instance into official Dolibarr instance:&lt;br /&gt;
&lt;br /&gt;
*Go into GitHub web interface of your forked Git instance.&lt;br /&gt;
*Click on small button &amp;quot;Create a Pull request&amp;quot;.&lt;br /&gt;
*Choose commit you request inclusion and validate.&lt;br /&gt;
&lt;br /&gt;
=Ask official project to include your changes=&lt;br /&gt;
Once you pushed one or several commit toward your distant fork area on github, you can ask the Dolibarr core team to include it into official project.&lt;br /&gt;
For this, follow this tutorial: https://help.github.com/articles/creating-a-pull-request/&lt;br /&gt;
&lt;br /&gt;
=Add an external commit into current repository=&lt;br /&gt;
Some developers may work and do commit into their own Git repository after forking the project. If you are interesting into getting this changes, you can import them with the following steps.&lt;br /&gt;
&lt;br /&gt;
You need both Eclipse and GIT Command Line interface to achieve this:&lt;br /&gt;
&lt;br /&gt;
*First, go into GIT setup view and right click on &amp;quot;&#039;&#039;&#039;Remotes&#039;&#039;&#039;&amp;quot; of your Eclipse Git working space and choose &amp;quot;&#039;&#039;&#039;Create a remote...&#039;&#039;&#039;&amp;quot;&lt;br /&gt;
*Type name or remote fork the developer has create (in most cases, it&#039;s developer Git login). For example: &amp;quot;&#039;&#039;&#039;thedevlogin&#039;&#039;&#039;&amp;quot;. Choose also &amp;quot;&#039;&#039;&#039;Configure Fetch&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*Type URI of Git repository of developer. For example: &#039;&#039;&#039;git://github.com/thedevlogin/dolibarr.git&#039;&#039;&#039;. Also add a refspec value to declare the branch you want to get. For example: &#039;&#039;&#039;refs/heads/master:refs/remotes/thedevlogin/master&#039;&#039;&#039;. Click &amp;quot;&#039;&#039;&#039;Save and Fetch&#039;&#039;&#039;&amp;quot;. A new entry will be added into &amp;quot;Remote Tracking&amp;quot; making possible to read/get commits done into this branch.&lt;br /&gt;
&lt;br /&gt;
Now, go on command line of your git repository (in most cases on Linux, it&#039;s &#039;&#039;&#039;/home/yourlogin/git/yourdolibarr&#039;&#039;&#039;) and type the git cherry-pick command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick -x commitid&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where commitid is value of commit id you want to get.&lt;br /&gt;
&lt;br /&gt;
Once this is done, go back to Eclipse and make a refresh on project. You will see modified files appears with decorators (with conflicts if there is).&lt;br /&gt;
&lt;br /&gt;
It the cherry-pick fails because of conflicts, you can cancel the cherry-pick try with&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git cherry-pick --abort&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Solving a conflict=&lt;br /&gt;
If a file has been marked as &amp;quot;conflict&amp;quot; after a Pull, open the file to edit it.&lt;br /&gt;
Find string &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;, you will see part of code that is conflict between &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. Edit manually code lines and remove &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Then, right click on file and select &amp;quot;Add&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you prefer to forget completely all changes you made into all files (so to restore you workspace with content of remote repository), you can make a hard reset:&lt;br /&gt;
&lt;br /&gt;
*With Eclipse: Right click on project top line and select &amp;quot;&#039;&#039;&#039;Reset&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Hard&#039;&#039;&#039;&amp;quot; then &amp;quot;&#039;&#039;&#039;Reference - HEAD&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
*With GIT Command Line Interface: You can achieve this with command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard HEAD&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To reset changes you commited but not pushed to origin&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git reset --hard origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Tagging sources=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
To add a tag to a current version:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -a -m &amp;quot;Release|Maintenance release x.y.z&amp;quot; &amp;quot;x.y.z&amp;quot;&lt;br /&gt;
or&lt;br /&gt;
git tag -a -f -m &amp;quot;Beta x.y.betai&amp;quot; &amp;quot;x.y.betai_YYYYMMDD&amp;quot; idcommit   # -f force if an existing tag already exists, idcommit allows to choose commit to tag&lt;br /&gt;
&lt;br /&gt;
git push --tags   # To push tags to remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove a tag:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git tag -d &amp;quot;x.y.z_YYYYMMDD&amp;quot;&lt;br /&gt;
git push remoteentryname :x.y.z_YYYYMMDD    # To validate delete on remote origin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating a new branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, then go into directory and launch command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git branch x.y&lt;br /&gt;
git push origin x.y&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
Create a clone (see previously) of the branch from where you want to create another branch, with a checkout done. The go into view git. Choose branches, remote tracking and select start branch.&lt;br /&gt;
Right click and choose &amp;quot;Create branch&amp;quot;. &lt;br /&gt;
Then make a push to create branch remotely.&lt;br /&gt;
Then go into &amp;quot;Remotes - origins&amp;quot; and edit the entries to pull and push onto new branch.&lt;br /&gt;
It may also be required to edit the .git/config file to have project linked by default onto new branch.&lt;br /&gt;
&lt;br /&gt;
=Deleting a branch=&lt;br /&gt;
With GIT Command Line Interface:&lt;br /&gt;
&lt;br /&gt;
Do a push on branch but add : before name of branch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push remoteentryname :branchnametodelete&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Merging a maintenance branch x.x into dev branch=&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto the root directory of project with a checkout of the dev branch.&lt;br /&gt;
*Check fetch setup to be sure, this repository contains both information of dev branch and version x.x you want to merge.&lt;br /&gt;
*Right click onto root directory and choose &amp;quot;Team - Merge&amp;quot;. Select &amp;quot;x.x&amp;quot;. Click onto &amp;quot;Merge options - Commit&amp;quot;, because we want to commit merged branch if there is no conflicts.&lt;br /&gt;
*Once merge is done, check everything is ok.&lt;br /&gt;
*Commit and push.&lt;br /&gt;
&lt;br /&gt;
=Pushing a branch onto another Git server=&lt;br /&gt;
You may want to synchronize another GIT server.&lt;br /&gt;
To synchronize push to another server, this is how to proceed.&lt;br /&gt;
With Eclipse:&lt;br /&gt;
&lt;br /&gt;
*Go onto Git clone view and add a remote with a name, choose &amp;quot;Configure push&amp;quot; and enter URL. For example, for name &amp;quot;sourceforge&amp;quot; and URL &amp;quot;ssh://yoursourceforgelogin@git.code.sf.net/p/dolibarr/code&amp;quot;&lt;br /&gt;
*Just validate, a first push will be done automatically.&lt;br /&gt;
*To force sync, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git push sourceforge develop&lt;br /&gt;
git push --tags sourceforge develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Statistics=&lt;br /&gt;
With GIT Command Line interface:&lt;br /&gt;
&lt;br /&gt;
To count number of changes developers have made between a version x and y:&lt;br /&gt;
&lt;br /&gt;
*First, search commit id of tags you want to compare&lt;br /&gt;
&lt;br /&gt;
To find id_start (common commit id between 2 versions/tags)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git merge-base refs/tags/3.3.0 origin/3.4&lt;br /&gt;
or&lt;br /&gt;
git merge-base 3.7 origin/develop&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To find id_end, choose among&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git show-ref&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Choose a value for id_start and id_end&lt;br /&gt;
Note: id_end can be HEAD.&lt;br /&gt;
&lt;br /&gt;
*Then run git log to have list of all changes from last common commit to last commit&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log id_start..id_end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To get total number of added/deleted lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git log --ancestry-path --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To count number of changes finally between a version x and y (it differs from previous count because in previous count, a change can be done 2 times at two different moment to change differently. With second method, you count changes finally found if changes were ok at first try). &lt;br /&gt;
&lt;br /&gt;
*Use same method than previously but instead of running git log, run git diff.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git diff -b -M --numstat --pretty=&amp;quot;%H&amp;quot; id_start..id_end | awk &#039;NF==3 {plus+=$1; minus+=$2} END {printf(&amp;quot;+%d, -%d\n&amp;quot;, plus, minus)}&#039;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information in GIT usage is available [http://wiki.eclipse.org/EGit/User_Guide here].&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Speaking services</name></author>
	</entry>
</feed>