<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://ps.wdka.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=Git</id>
	<title>Git - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ps.wdka.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=Git"/>
	<link rel="alternate" type="text/html" href="https://ps.wdka.nl/wiki/index.php?title=Git&amp;action=history"/>
	<updated>2026-05-15T19:27:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6062&amp;oldid=prev</id>
		<title>Andre: /* 3 Git moments */</title>
		<link rel="alternate" type="text/html" href="https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6062&amp;oldid=prev"/>
		<updated>2017-02-08T19:12:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;3 Git moments&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:12, 8 February 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=3 Git moments=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=3 Git moments=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;http://codingdomain.com/git/partial-commits/git-staging-area.png&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For local (in your computer) Git operations, there are 3 main moments:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For local (in your computer) Git operations, there are 3 main moments:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* working: editing files    &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* working: editing files    &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 53:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;git commit -m &amp;quot;message about what happened in that commit&amp;quot;&amp;lt;/code&amp;gt; creates a version or &amp;#039;&amp;#039;commit&amp;#039;&amp;#039; of your project. A accompanying message describes what happen in that &amp;#039;&amp;#039;commit&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;git commit -m &amp;quot;message about what happened in that commit&amp;quot;&amp;lt;/code&amp;gt; creates a version or &amp;#039;&amp;#039;commit&amp;#039;&amp;#039; of your project. A accompanying message describes what happen in that &amp;#039;&amp;#039;commit&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;git log&amp;lt;/code&amp;gt; show the &#039;&#039;history of commits&#039;&#039;, where each commit is shows an author, date, message and hash (a long string of letter and numbers that identifies the commit) &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;git log&amp;lt;/code&amp;gt; show the &#039;&#039;history of commits&#039;&#039;, where each commit is shows an author, date, message and hash (a long string of letter and numbers that identifies the commit)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Undoing things=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Undoing things=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andre</name></author>
	</entry>
	<entry>
		<id>https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6061&amp;oldid=prev</id>
		<title>Andre at 18:59, 6 February 2017</title>
		<link rel="alternate" type="text/html" href="https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6061&amp;oldid=prev"/>
		<updated>2017-02-06T18:59:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:59, 6 February 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File&lt;/del&gt;:GitForArtists.jpg&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//mywdka.nl/openaanbod/wp-content/uploads/sites/260/2016/02/&lt;/ins&gt;GitForArtists&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-1&lt;/ins&gt;.jpg&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Talk Git=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Talk Git=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andre</name></author>
	</entry>
	<entry>
		<id>https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6032&amp;oldid=prev</id>
		<title>Andre at 18:20, 1 February 2017</title>
		<link rel="alternate" type="text/html" href="https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6032&amp;oldid=prev"/>
		<updated>2017-02-01T18:20:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://ps.wdka.nl/wiki/index.php?title=Git&amp;amp;diff=6032&amp;amp;oldid=6022&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Andre</name></author>
	</entry>
	<entry>
		<id>https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6022&amp;oldid=prev</id>
		<title>Andre: Created page with &quot;File:GitForArtists.jpg  =resources= [http://ndpsoftware.com/git-cheatsheet.html#loc=index; Git Cheatsheet]  [http://git-scm.com/ Git home]   [https://wubthecaptain.eu/arti...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ps.wdka.nl/wiki/index.php?title=Git&amp;diff=6022&amp;oldid=prev"/>
		<updated>2017-01-25T16:57:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php?title=File:GitForArtists.jpg&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;File:GitForArtists.jpg (page does not exist)&quot;&gt;File:GitForArtists.jpg&lt;/a&gt;  =resources= [http://ndpsoftware.com/git-cheatsheet.html#loc=index; Git Cheatsheet]  [http://git-scm.com/ Git home]   [https://wubthecaptain.eu/arti...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:GitForArtists.jpg]]&lt;br /&gt;
&lt;br /&gt;
=resources=&lt;br /&gt;
[http://ndpsoftware.com/git-cheatsheet.html#loc=index; Git Cheatsheet]&lt;br /&gt;
&lt;br /&gt;
[http://git-scm.com/ Git home] &lt;br /&gt;
&lt;br /&gt;
[https://wubthecaptain.eu/articles/why-i-dont-support-github.html blog on Github Terms of Services]&lt;br /&gt;
&lt;br /&gt;
=What is Git?=&lt;br /&gt;
Git is frequently described as a &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;distributed version control system&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
Initially create by the Linux&amp;#039; father Linus Torvalds in 2005 to facilitate code contributions to the Linux kernel.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;version control system&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
A system for keeping track of the versions from a file e.g. &amp;lt;code&amp;gt;drawing.svg, drawing.svg.v1, drawing.svg.v2, drawing.svg.v3&amp;lt;/code&amp;gt;, while hiding all previous versions.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;distributed&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
Files from one project are mirror in multiple (collaborators&amp;#039;) computers. &lt;br /&gt;
Collaborators meaning they can sync their efforts by sending and receiving contribution.&lt;br /&gt;
&lt;br /&gt;
=version control=&lt;br /&gt;
Simply version control an image, locally. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir null-local&lt;br /&gt;
cd null-local&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
create a couple of SVG images and save it in project-dir.&lt;br /&gt;
&lt;br /&gt;
Including in an SVG (code) the tag &amp;lt;code&amp;gt;&amp;lt;image xlink:href=&amp;quot;other.svg&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt; you can include the other.svg image in current SVG&lt;br /&gt;
&lt;br /&gt;
You need &amp;lt;code&amp;gt;xmlns:xlink=&amp;quot;http://www.w3.org/1999/xlink&amp;quot;&amp;lt;/code&amp;gt; inside the svg tag e.g.: &lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;svg width=&amp;quot;5cm&amp;quot; height=&amp;quot;3cm&amp;quot; viewBox=&amp;quot;0 0 5 3&amp;quot; version=&amp;quot;1.1&amp;quot;  xmlns=&amp;quot;http://www.w3.org/2000/svg&amp;quot; xmlns:xlink=&amp;quot;http://www.w3.org/1999/xlink&amp;quot;&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git init &lt;br /&gt;
git add myimage.svg&lt;br /&gt;
git status&lt;br /&gt;
git commit -m &amp;quot;I am starting to version&amp;quot;&lt;br /&gt;
git log&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;git init&amp;lt;/code&amp;gt; initiates a git repository. Creating a &amp;lt;code&amp;gt;.git/&amp;lt;/code&amp;gt; folder where all the Git information will be contained. &lt;br /&gt;
* &amp;lt;code&amp;gt;git add&amp;lt;/code&amp;gt; when run for the 1st time on file or dir, starts tracking it. (There might be project files you might not want to track).&lt;br /&gt;
* &amp;lt;code&amp;gt;git status&amp;lt;/code&amp;gt; display untracked and tracked (&amp;#039;&amp;#039;staged&amp;#039;&amp;#039; and  &amp;#039;&amp;#039;unstaged&amp;#039;&amp;#039; for &amp;#039;&amp;#039;commit&amp;#039;&amp;#039;)&lt;br /&gt;
* &amp;lt;code&amp;gt;git commit&amp;lt;/code&amp;gt; creates a version or &amp;#039;&amp;#039;commit&amp;#039;&amp;#039; of your project. Usually accompanied by a message describing what happen in that &amp;#039;&amp;#039;commit&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;lt;code&amp;gt;git log&amp;lt;/code&amp;gt; show the &amp;#039;&amp;#039;history of commits&amp;#039;&amp;#039;, where each commit is shows an author, date, message and hash    &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;git add &amp;lt;/code&amp;gt; on a file that is being tracked and has been changed, &amp;quot;stage those changes&amp;quot; &lt;br /&gt;
&lt;br /&gt;
==undoing thing / going back==&lt;br /&gt;
==discard changes before committing==&lt;br /&gt;
* &amp;lt;code&amp;gt;git reset HEAD &amp;lt;file&amp;gt;&amp;lt;/code&amp;gt; for a &amp;#039;staged&amp;#039; file&lt;br /&gt;
* &amp;lt;code&amp;gt;git reset HEAD &amp;lt;file&amp;gt;&amp;lt;/code&amp;gt; for a &amp;#039;unstaged&amp;#039; file&lt;br /&gt;
&lt;br /&gt;
==temporarily checkout past commits==&lt;br /&gt;
* &amp;lt;code&amp;gt;git checkout --detach commit# &amp;lt;/code&amp;gt; temporarily &amp;#039;&amp;#039;detaches the HEAD&amp;#039;&amp;#039; in order Look how things were in previous commits. &amp;quot;You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
To return the HEAD to the latest commit do &amp;lt;code&amp;gt;git checkout master &amp;lt;/code&amp;gt; (if the branch you are working in is a master (the default))&lt;br /&gt;
&lt;br /&gt;
==permanently reset to past commits==&lt;br /&gt;
EXTREME! &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;git reset --hard commit# &amp;lt;/code&amp;gt; - resets current HEAD to the specified commit.&lt;br /&gt;
Because of flag &amp;lt;code&amp;gt;--hard&amp;lt;/code&amp;gt; files in your repository will be removed if they exist prior to the commit.&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=remote repositories=&lt;br /&gt;
Git facilitates the coordination of contributions from different collaborators in a project. &lt;br /&gt;
&lt;br /&gt;
Each contributor has a local repository, that is a &amp;#039;&amp;#039;&amp;#039;&amp;#039;clone&amp;#039;&amp;#039;&amp;#039;&amp;#039; of the &amp;#039;&amp;#039;remote repository&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;The remote repository acts as the central node from which all the users will receive - &amp;#039;&amp;#039;pull&amp;#039;&amp;#039; - and send - &amp;#039;&amp;#039;push&amp;#039;&amp;#039; contributions.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==creating a remote==&lt;br /&gt;
In pzwart1 the git server is located in &amp;lt;code&amp;gt;/home/git/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With the repositories stored  &amp;lt;code&amp;gt;/home/git/git/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To create a remote, 1 person(normally the admin) start a &amp;#039;&amp;#039;remote (bare) repository&amp;#039;&amp;#039; to push and pull code to and from:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /home/git/git&lt;br /&gt;
mkdir null.git&lt;br /&gt;
cd null.git &lt;br /&gt;
git init --bare &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==set remote &amp;amp; first push==&lt;br /&gt;
(Note: This step only needs to be performed by the admin, whom will usually set a remote in the local repository). &lt;br /&gt;
&lt;br /&gt;
Inside local folder &amp;lt;code&amp;gt;null-local/&amp;lt;/code&amp;gt; dir:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git remote add origin git@pzwart1.wdka.hro.nl:/home/git/git/null.git #add origin remote&lt;br /&gt;
git remote -v #view the existing remotes. Only origin remote was added&lt;br /&gt;
   origin	git@pzwart1.wdka.hro.nl:/home/git/git/null.git (fetch)&lt;br /&gt;
   origin	git@pzwart1.wdka.hro.nl:/home/git/git/null.git (push)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==cloning the remote==&lt;br /&gt;
To clone the remote git needs an authentication from its users, usually using &amp;#039;&amp;#039;&amp;#039;ssh keys&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
===authentication===&lt;br /&gt;
ssh key pairs (a public and private key) is an authentication method for clients to access servers through &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt;. E.g. For my computer to ssh to pzwart1. &lt;br /&gt;
&lt;br /&gt;
How do we go about doing that:&lt;br /&gt;
* in our local computers we need to [https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key generate an ssh-key pair] &lt;br /&gt;
* in our local computer a plain text file  &amp;lt;code&amp;gt;~/.ssh/id_rsa.pub&amp;lt;/code&amp;gt; stores contains our &amp;#039;&amp;#039;public key&amp;#039;&amp;#039;&lt;br /&gt;
* we give our public key to the git admin, &lt;br /&gt;
* the adim adds the &amp;#039;&amp;#039;public key&amp;#039;&amp;#039; to the git server&amp;#039;s &amp;lt;code&amp;gt;/home/git/.ssh/authorized_keys&amp;lt;/code&amp;gt; &lt;br /&gt;
* we are ready to clone, push and pull to the remote.&lt;br /&gt;
&lt;br /&gt;
===clone===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone git@pzwart1.wdka.hro.nl:/home/git/git/amazing_project.git &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andre</name></author>
	</entry>
</feed>