<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Git</title><link>https://sourceforge.net/p/hercules/wiki/Git/</link><description>Recent changes to Git</description><atom:link href="https://sourceforge.net/p/hercules/wiki/Git/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 20 Feb 2023 05:01:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hercules/wiki/Git/feed" rel="self" type="application/rss+xml"/><item><title>Git modified by Brynner</title><link>https://sourceforge.net/p/hercules/wiki/Git/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;span&gt;[Category:Incomplete]&lt;/span&gt;&lt;/p&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#preface"&gt;Preface&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#about-git"&gt;About Git&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#checkout"&gt;Checkout&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#commit"&gt;Commit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#push"&gt;Push&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#pull"&gt;Pull&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#obtaininstall-git"&gt;Obtain/Install Git&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#hercules-git-details"&gt;Hercules Git Details&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#hercules-developer-branches"&gt;Hercules Developer Branches&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#using-diffpatch-files"&gt;Using .diff/.patch files&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 id="preface"&gt;Preface&lt;/h2&gt;
&lt;p&gt;This article will cover the &lt;strong&gt;Git&lt;/strong&gt; details related to Hercules. &lt;strong&gt;Git&lt;/strong&gt; is a&lt;br/&gt;
version control system that allows multiple users to contribute to the&lt;br/&gt;
development of Hercules, if permitted. It is also the most efficient method to&lt;br/&gt;
downloading the source code of Hercules.&lt;/p&gt;
&lt;h2 id="about-git"&gt;About Git&lt;/h2&gt;
&lt;p&gt;As mentioned above &lt;strong&gt;Git&lt;/strong&gt; is a version control system that allows users to&lt;br/&gt;
download the latest source code.&lt;/p&gt;
&lt;h3 id="checkout"&gt;Checkout&lt;/h3&gt;
&lt;p&gt;When you &lt;strong&gt;clone&lt;/strong&gt; a git repository, it is downloaded, along with all history,&lt;br/&gt;
properties and files, onto your machine so you can make local changes or use&lt;br/&gt;
it in a production environment.&lt;/p&gt;
&lt;h3 id="commit"&gt;Commit&lt;/h3&gt;
&lt;p&gt;When you &lt;strong&gt;commit&lt;/strong&gt; a piece of code, you are saving a set of changes in a form&lt;br/&gt;
that can be uploaded back to the server. Each commit includes the author's&lt;br/&gt;
name, what they changed and when they changed it, which can be viewed and&lt;br/&gt;
referenced later.&lt;/p&gt;
&lt;h3 id="push"&gt;Push&lt;/h3&gt;
&lt;p&gt;When you &lt;strong&gt;push&lt;/strong&gt; your commits, you are sending your commits to the central&lt;br/&gt;
git server, to make them available to other people.&lt;/p&gt;
&lt;p&gt;Only members of the &lt;a class="" href="../Hercules%20development%20team"&gt;Staff&lt;/a&gt; can commit code&lt;br/&gt;
straight to the Hercules Git.&lt;/p&gt;
&lt;h3 id="pull"&gt;Pull&lt;/h3&gt;
&lt;p&gt;When you &lt;strong&gt;pull&lt;/strong&gt; commits, you are downloading the latest commits that were&lt;br/&gt;
pushed to the git repository, and merging them to your working copy. In this&lt;br/&gt;
operation, many files are changed, but some are added, deleted or moved. When&lt;br/&gt;
you pull changes, a lot of conflicts can happen, so keep an eye out of those.&lt;/p&gt;
&lt;h3 id="obtaininstall-git"&gt;Obtain/Install Git&lt;/h3&gt;
&lt;p&gt;Please see the &lt;span&gt;[:Category:Installation]&lt;/span&gt; appropriate category for&lt;br/&gt;
installation of Git on your operating system of choice and how to utilize it.&lt;/p&gt;
&lt;h2 id="hercules-git-details"&gt;Hercules Git Details&lt;/h2&gt;
&lt;p&gt;You can find the root or index of the Hercules source code at the following&lt;br/&gt;
link:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="nv"&gt;git&lt;/span&gt;&lt;span class="err"&gt;|&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="nf"&gt;full&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;. This link can be used if you need to view a single file and don't want to&lt;br/&gt;
dig up your "copy" of the source code.&lt;/p&gt;
&lt;h3 id="hercules-developer-branches"&gt;Hercules Developer Branches&lt;/h3&gt;
&lt;p&gt;Each developer that contributes to the Hercules Project is welcome to their&lt;br/&gt;
own branches on the git repository. A lot of times, these separate branches&lt;br/&gt;
branch are a testing bed for a new feature. You should never assume that any&lt;br/&gt;
branch that is not trunk or not stable is usable. Often times, it is not.&lt;/p&gt;
&lt;h2 id="using-diffpatch-files"&gt;Using .diff/.patch files&lt;/h2&gt;
&lt;p&gt;{{EntirePage|Diff}} Often times, developers and contributors will release&lt;br/&gt;
their work with a .diff or .patch file. these files are designed specifically&lt;br/&gt;
to be applied to Hercules and 'patched' in.&lt;/p&gt;
&lt;p&gt;If the revision numbers are different, or the code is different in anyway, the&lt;br/&gt;
patch will likely fail with the error message that the revision numbers do not&lt;br/&gt;
match. The diff file will include some important symbols and numbers to help&lt;br/&gt;
you apply them manually.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;/path/to/file [Revision 233]
@@ +241,4 -241,4 @@
+ This line will be added at the line number or position indicated above.
- This line will be removed at the line number or position indicated above.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;So in the file, we're to remove line 241 and replace it with the line that has&lt;br/&gt;
the '+' next to it.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Category:Basics]&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brynner</dc:creator><pubDate>Mon, 20 Feb 2023 05:01:38 -0000</pubDate><guid>https://sourceforge.net5ecb409b4f08f655cb9698bcefd18e371986c694</guid></item></channel></rss>