<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Git on it-grossniklaus.ch</title>
    <link>https://it-grossniklaus.ch/tags/git/</link>
    <description>Recent content in Git on it-grossniklaus.ch</description>
    <generator>Hugo</generator>
    <language>de</language>
    <lastBuildDate>Thu, 28 Jun 2018 10:45:45 +0200</lastBuildDate>
    <atom:link href="https://it-grossniklaus.ch/tags/git/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Änderungen bei GitHub und GitLab</title>
      <link>https://it-grossniklaus.ch/blog/2018/06/28/wechsel-bei-github-und-gitlab/</link>
      <pubDate>Thu, 28 Jun 2018 10:45:45 +0200</pubDate>
      <guid>https://it-grossniklaus.ch/blog/2018/06/28/wechsel-bei-github-und-gitlab/</guid>
      <description>&lt;p&gt;Der Kampf der Titanen um das &amp;ldquo;Beheimaten&amp;rdquo; von versionierten Dateien&#xA;(meist Source Code) via&#xA;&lt;a href=&#34;https://de.wikipedia.org/wiki/Software_as_a_Service&#34;&gt;SaaS&lt;/a&gt; ist im&#xA;vollem Gang.&lt;/p&gt;&#xA;&lt;h2 id=&#34;microsoft-und-github-hahahugoshortcode12s0hbhb&#34;&gt;Microsoft und GitHub     &#xA;&lt;span class=&#39;fab fa-github fa-1x&#39; aria-hidden=&#34;true&#34;&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Schon &lt;a href=&#34;https://blog.github.com/2008-04-10-we-launched/&#34;&gt;2008&lt;/a&gt; wurde&#xA;&lt;a href=&#34;https://de.wikipedia.org/wiki/GitHub&#34;&gt;GitHub&lt;/a&gt; &lt;em&gt;(Build software&#xA;better, together)&lt;/em&gt; gegründet und ermöglicht seitdem die zentrale&#xA;Ablage von Repositories für die&#xA;&lt;a href=&#34;https://de.wikipedia.org/wiki/Versionsverwaltung&#34;&gt;Versionsverwaltung&lt;/a&gt;&#xA;via &lt;a href=&#34;https://de.wikipedia.org/wiki/Git&#34;&gt;git&lt;/a&gt;.&#xA;Es geht aber nicht &amp;ldquo;nur&amp;rdquo; um die Ablage, sondern primär um den &lt;a href=&#34;https://guides.github.com/introduction/flow/&#34;&gt;GitHub&#xA;Flow&lt;/a&gt;.  Es gab schon&#xA;Mitbewerber wie&#xA;z.B. &lt;a href=&#34;https://de.wikipedia.org/wiki/SourceForge&#34;&gt;SourceForge&lt;/a&gt; (1999)&#xA;für &lt;a href=&#34;https://de.wikipedia.org/wiki/Subversion&#34;&gt;Subversion&lt;/a&gt;. Doch git&#xA;und somit auch GitHub wurden sehr schnell populär.&lt;/p&gt;</description>
    </item>
    <item>
      <title>git clone</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-clone/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-clone/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git help clone&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git clone https://github.com/it-gro/hugo-theme-w3css-basic.git&#xA;cd hugo-theme-w3css-basic&#xA;# switch into branch&#xA;git checkout -b wip&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git clone git@github.com:it-gro/hugo-theme-w3css-basic.git&#xA;cd hugo-theme-w3css-basic&#xA;# switch into branch&#xA;git checkout -b wip&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>git config</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-config/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-config/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git help config&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git config          --list&#xA;git config --local  --list&#xA;git config --global --list&#xA;git config --system --list&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git config --global user.name &#34;it-gro&#34;&#xA;git config --global user.email &#34;foo@example.com&#34;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git config --global --unset-all user.name&#xA;git config --global --unset-all user.email&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git config user.name  &#34;Foo Bar&#34;&#34;&#xA;git config user.email foobar@example.com&#xA;git commit --amend --reset-author&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>git merge</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-merge/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-merge/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git help merge&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;merge-beim-hoster-schlägt-fehl&#34;&gt;merge beim Hoster schlägt fehl&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Schritt 1: Änderungen vom Repo einbringen und testen&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git fetch origin&#xA;git checkout -b feature-abc origin/feature-abc&#xA;git merge master&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Schritt 2: Änderungen zusammenführen und upload&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git checkout master&#xA;git merge --no-ff feature-abc&#xA;git push origin master&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>git remote</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-remote/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-remote/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git help remote&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;zeigen-aktuelle-einstellung&#34;&gt;Zeigen aktuelle Einstellung&lt;/h3&gt;&#xA;&lt;p&gt;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git remote -v &#xA;# git remote -v show&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;origin&#x9;https://github.com/it-gro/hugo-theme-w3css-basic.git (fetch)&#xA;origin&#x9;https://github.com/it-gro/hugo-theme-w3css-basic.git (push)&#xA;&lt;/pre&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git remote -v show origin&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;origin&#x9;https://github.com/it-gro/hugo-theme-w3css-basic.git (fetch)&#xA;origin&#x9;https://github.com/it-gro/hugo-theme-w3css-basic.git (push)&#xA;&lt;/pre&gt;&#xA;&lt;/p&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git remote show origin&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;* remote origin&#xA;  Fetch URL: git@gitlab.com:it-gro/foo.git&#xA;  Push  URL: git@gitlab.com:it-gro/foo.git&#xA;  HEAD branch: master&#xA;  Remote branch:&#xA;    master tracked&#xA;  Local branch configured for &#39;git pull&#39;:&#xA;    master merges with remote master&#xA;  Local ref configured for &#39;git push&#39;:&#xA;    master pushes to master (up to date)&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;url-ändern&#34;&gt;URL ändern&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git remote set-url origin git@github.com:it-gro/bar/foo.git&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>git submodule</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-submodule/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-submodule/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git help submodule&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;git-submodule-add-read-only-intended&#34;&gt;git submodule add (read only intended)&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;# cd where_you_want_it&#xA;git submodule add https://github.com/it-gro/hugo-theme-w3css-basic.git&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;git-submodule-add-write-intended&#34;&gt;git submodule add (write intended)&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;# cd where_you_want_it&#xA;git submodule add git@github.com/it-gro/hugo-theme-w3css-basic.git&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Neues Hoster Repo</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-new/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/version/git/snippets/git-new/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;Erstellen eines neuen Repos beim Hoster (WebGui)&lt;/li&gt;&#xA;&lt;li&gt;danach 3 Möglichkeiten&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;leer-clonen--foo&#34;&gt;Leer clonen  (foo)&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;git clone git@gitlab.com:it-gro/foo.git&#xA;cd foo&#xA;touch README.md&#xA;git add README.md&#xA;git commit -m &#34;add README&#34;&#xA;git push -u origin master&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;bestehendes-projekt-bar&#34;&gt;Bestehendes Projekt (bar)&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;cd bar&#xA;git init&#xA;git remote add origin git@gitlab.com:it-gro/bar.git&#xA;git add .&#xA;git commit -m &#34;Initial commit&#34;&#xA;git push -u origin master&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h3 id=&#34;bestehendes-repo-foobar&#34;&gt;Bestehendes Repo (foobar)&lt;/h3&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;cd foobar&#xA;git remote rename origin old-origin&#xA;git remote add origin git@gitlab.com:it-gro/foobar.git&#xA;git push -u origin --all&#xA;git push -u origin --tags&#xA;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
