{"id":105,"date":"2014-04-06T09:35:22","date_gmt":"2014-04-06T09:35:22","guid":{"rendered":"http:\/\/arclab.fhws.de\/blog\/?p=105"},"modified":"2014-05-29T07:16:55","modified_gmt":"2014-05-29T07:16:55","slug":"git-als-code-repository-im-arc-lab","status":"publish","type":"post","link":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/","title":{"rendered":"GIT als Code-Repository im ARC.lab"},"content":{"rendered":"<p>Im ARC.lab entstehen Master-, Bachelor- und Projektarbeiten, die oft auch umfangreiche Anteile an Programmcode umfassen. Als gemeinsame Codeablage verwenden wir das quelloffene <a title=\"GIT\" href=\"http:\/\/git-scm.com\/\">Repository GIT<\/a>.<\/p>\n<h2>Warum GIT?<\/h2>\n<p>GIT hat gegen\u00fcber anderen Repositories den gro\u00dfen Vorteil, dass alle Projektbeteiligten auch lokal auf ihrem Rechner die M\u00f6glichkeit haben, mehrere Versionen zu verwalten. Sobald ein stabiler Stand erreicht ist, kann dieser dann auch mit anderen geteilt werden.<\/p>\n<h2>Wie nutzt man GIT?<\/h2>\n<p>Die einfachste Form der Nutzung ist die Kommandozeile. Klingt anachronistisch, hilft aber gerade am Anfang sehr, die Abl\u00e4ufe zu verstehen:<\/p>\n<table>\n<tbody>\n<tr>\n<th width=\"50%\">BefehlE (Auszug)<\/th>\n<th width=\"50%\">Bedeutung<\/th>\n<\/tr>\n<tr>\n<td>\n<pre>git clone &lt;REMOTE-LOCATION&gt;<\/pre>\n<\/td>\n<td>Kopieren eines an &lt;REMOTE-LOCATION&gt; bereits bestehenden Repositories, um damit lokal zu arbeiten. Es wird ein lokales (gespiegeltes) Repository angelegt und die Dateien im Dateisystem verf\u00fcgbar gemacht.<\/td>\n<\/tr>\n<tr>\n<td>\n<pre>git add -A<\/pre>\n<\/td>\n<td>Alle bei der Programmierung im Dateisystem neu angelegten Projektdateien werden mit dem Repository verkn\u00fcpft (aber noch nicht eingef\u00fcgt).<\/td>\n<\/tr>\n<tr>\n<td>\n<pre>git commit -a -m &lt;MESSAGE&gt;<\/pre>\n<\/td>\n<td>Alle lokalen Projektdateien aus dem Dateisystem werden als eine neue lokale Version im lokalen Repository gespeichert.<\/td>\n<\/tr>\n<tr>\n<td>\n<pre>git push<\/pre>\n<\/td>\n<td>Die aktuelle Version im lokalen Repository wird an die &lt;REMOTE-LOCATION&gt; als neuer globaler Stand \u00fcbertragen.<\/td>\n<\/tr>\n<tr>\n<td>\n<pre>git pull<\/pre>\n<\/td>\n<td>Abholen des aktuellen Stands an der &lt;REMOTE-LOCATION&gt; und Verschmelzen mit der aktuellen Version im lokalen Repository. Die \u00c4nderungen sind auch sofort im Dateisystem verf\u00fcgbar.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Wo liegt das zentrale Repository?<\/h2>\n<p>F\u00fcr jede am ARC.lab angefertigte Arbeit steht ein Repository bereit. Die genauen Zugangsdaten erhalten alle Beteiligten zu Projektstart. Die erste Aktion ist dann, sich mittels<\/p>\n<pre>git clone http:\/\/&lt;user&gt;@arclab.fhws.de\/&lt;pfad zum repository&gt;<\/pre>\n<p>eine lokale Kopie des jeweiligen Projektrepositories anzulegen.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Im ARC.lab entstehen Master-, Bachelor- und Projektarbeiten, die oft auch umfangreiche Anteile an Programmcode umfassen. Als gemeinsame Codeablage verwenden wir das quelloffene Repository GIT. Warum GIT? GIT hat gegen\u00fcber anderen Repositories den gro\u00dfen Vorteil, dass alle Projektbeteiligten auch lokal auf ihrem Rechner die M\u00f6glichkeit haben, mehrere Versionen zu verwalten. Sobald ein stabiler Stand erreicht ist, &hellip; <a href=\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\" class=\"more-link\"><span class=\"screen-reader-text\">GIT als Code-Repository im ARC.lab<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GIT als Code-Repository im ARC.lab<\/title>\n<meta name=\"description\" content=\"Kurzeinf\u00fchrung in die Nutzung von GIT-Repositories am ARC.lab\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GIT als Code-Repository im ARC.lab\" \/>\n<meta property=\"og:description\" content=\"Kurzeinf\u00fchrung in die Nutzung von GIT-Repositories am ARC.lab\" \/>\n<meta property=\"og:url\" content=\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\" \/>\n<meta property=\"og:site_name\" content=\"Code Comments\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-06T09:35:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-05-29T07:16:55+00:00\" \/>\n<meta name=\"author\" content=\"Oliver Hofmann\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oliver Hofmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\"},\"author\":{\"name\":\"Oliver Hofmann\",\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/cd22585e9c447d5140fab876575fc394\"},\"headline\":\"GIT als Code-Repository im ARC.lab\",\"datePublished\":\"2014-04-06T09:35:22+00:00\",\"dateModified\":\"2014-05-29T07:16:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\"},\"wordCount\":250,\"commentCount\":0,\"articleSection\":[\"General\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\",\"url\":\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\",\"name\":\"GIT als Code-Repository im ARC.lab\",\"isPartOf\":{\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/#website\"},\"datePublished\":\"2014-04-06T09:35:22+00:00\",\"dateModified\":\"2014-05-29T07:16:55+00:00\",\"author\":{\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/cd22585e9c447d5140fab876575fc394\"},\"description\":\"Kurzeinf\u00fchrung in die Nutzung von GIT-Repositories am ARC.lab\",\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/#website\",\"url\":\"https:\/\/code.efi.ohmportal.de\/blog\/\",\"name\":\"Code Comments\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/code.efi.ohmportal.de\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/cd22585e9c447d5140fab876575fc394\",\"name\":\"Oliver Hofmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b0d136459d060e391d2d3cc30a86b2bd4bb87d7358a51931de0a12ddd4f2f2bb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b0d136459d060e391d2d3cc30a86b2bd4bb87d7358a51931de0a12ddd4f2f2bb?s=96&d=mm&r=g\",\"caption\":\"Oliver Hofmann\"},\"sameAs\":[\"http:\/\/www.welearn.de\/fakultaet-iw\/personen\/details\/person\/prof-dr-oliver-hofmann\/\"],\"url\":\"https:\/\/code.efi.ohmportal.de\/blog\/author\/hofmanno\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GIT als Code-Repository im ARC.lab","description":"Kurzeinf\u00fchrung in die Nutzung von GIT-Repositories am ARC.lab","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/","og_locale":"de_DE","og_type":"article","og_title":"GIT als Code-Repository im ARC.lab","og_description":"Kurzeinf\u00fchrung in die Nutzung von GIT-Repositories am ARC.lab","og_url":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/","og_site_name":"Code Comments","article_published_time":"2014-04-06T09:35:22+00:00","article_modified_time":"2014-05-29T07:16:55+00:00","author":"Oliver Hofmann","twitter_misc":{"Verfasst von":"Oliver Hofmann","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/#article","isPartOf":{"@id":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/"},"author":{"name":"Oliver Hofmann","@id":"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/cd22585e9c447d5140fab876575fc394"},"headline":"GIT als Code-Repository im ARC.lab","datePublished":"2014-04-06T09:35:22+00:00","dateModified":"2014-05-29T07:16:55+00:00","mainEntityOfPage":{"@id":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/"},"wordCount":250,"commentCount":0,"articleSection":["General"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/","url":"https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/","name":"GIT als Code-Repository im ARC.lab","isPartOf":{"@id":"https:\/\/code.efi.ohmportal.de\/blog\/#website"},"datePublished":"2014-04-06T09:35:22+00:00","dateModified":"2014-05-29T07:16:55+00:00","author":{"@id":"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/cd22585e9c447d5140fab876575fc394"},"description":"Kurzeinf\u00fchrung in die Nutzung von GIT-Repositories am ARC.lab","inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/code.efi.ohmportal.de\/blog\/2014\/04\/git-als-code-repository-im-arc-lab\/"]}]},{"@type":"WebSite","@id":"https:\/\/code.efi.ohmportal.de\/blog\/#website","url":"https:\/\/code.efi.ohmportal.de\/blog\/","name":"Code Comments","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/code.efi.ohmportal.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/cd22585e9c447d5140fab876575fc394","name":"Oliver Hofmann","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/code.efi.ohmportal.de\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b0d136459d060e391d2d3cc30a86b2bd4bb87d7358a51931de0a12ddd4f2f2bb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0d136459d060e391d2d3cc30a86b2bd4bb87d7358a51931de0a12ddd4f2f2bb?s=96&d=mm&r=g","caption":"Oliver Hofmann"},"sameAs":["http:\/\/www.welearn.de\/fakultaet-iw\/personen\/details\/person\/prof-dr-oliver-hofmann\/"],"url":"https:\/\/code.efi.ohmportal.de\/blog\/author\/hofmanno\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8QwJV-1H","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":9,"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":193,"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions\/193"}],"wp:attachment":[{"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.efi.ohmportal.de\/blog\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}