<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nipuni Hewage on Medium]]></title>
        <description><![CDATA[Stories by Nipuni Hewage on Medium]]></description>
        <link>https://medium.com/@nipunih?source=rss-81771aa78459------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wq1Al7mwCDjiS9Oa.jpg</url>
            <title>Stories by Nipuni Hewage on Medium</title>
            <link>https://medium.com/@nipunih?source=rss-81771aa78459------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:51:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nipunih/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Learning GIT]]></title>
            <link>https://medium.com/@nipunih/learning-git-9717746721aa?source=rss-81771aa78459------2</link>
            <guid isPermaLink="false">https://medium.com/p/9717746721aa</guid>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Nipuni Hewage]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 13:49:58 GMT</pubDate>
            <atom:updated>2020-03-29T13:49:58.456Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is GIT and why is it important?</h4><p>GIT is a distributed version-control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*9V-sC-Z2XiLp6ZOD131pqw.png" /></figure><p>Version control allows you to record changes to a file or set of files over time enabling you to go back to a specific version if required. Git is a Distributed Version Control System. This means that instead of having a snapshot of the latest files, you have a complete mirror of the repository on your local machine. The repository keeps track of the changes, when they occurred and who by. Having the complete repository on your local machine reduces delays due to network traffic and enables you to continue working when disconnected.</p><h4>How to create a GitHub account?</h4><p>You can proceed with this link <a href="https://github.com/">https://github.com/</a> and create your own GitHub account.</p><p>I will guide you step by step throughout this tutorial.</p><blockquote>Step 1:</blockquote><h4>Configuring security key ( <a href="https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh">https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh</a> )</h4><p>You can see SSH key settings under settings of your profile. Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username or password at each visit. When you set up SSH, you’ll generate an SSH key and add it to the ssh-agent and then add the key to your GitHub account. Adding the SSH key to the ssh-agent ensures that your SSH key has an extra layer of security through the use of a passphrase.</p><blockquote>Step 2: CONCEPTS</blockquote><h4>Committing</h4><p>To save, or commit, files into your Git repository you first need to add them to the <em>staging area</em>. Git has three areas, a working directory, a staging area and the repository itself. Users move, otherwise referred to as promote, changes from the working directory, to a staging area before committing them into the repository.</p><h4>Branching</h4><p>When you’re working on a project, you’re going to have a bunch of different features or ideas in progress at any given time — some of which are ready to go, and others which are not. Branching exists to help you manage this workflow.</p><p>What happens when you create a new branch? Well, doing so creates a new pointer for you to move around. Let’s say you want to create a new branch called testing. You do this with the git branch command:</p><pre>$ git branch testing</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*HkhoN3vQ2OFuDPQT.png" /></figure><h4>Merging</h4><p>Now that your changes have been verified in production, it is time to merge your code into the master branch.</p><p>Once merged, Pull Requests preserve a record of the historical changes to your code. Because they’re searchable, they let anyone go back in time to understand why and how a decision was made.</p><h4>Conflict resolving — Fixing merge conflicts</h4><p>The git fetch command downloads changes into a separate branch which can be checked out and merge.</p><h4>Tagging</h4><p>Git has the ability to tag specific points in a repository’s history as being important. Typically, people use this functionality to mark release points (v1.0, v2.0 and so on).</p><h4>Cherry-Picking</h4><p>Cherry<strong> </strong>picking in Git means to choose a commit from one branch and apply it onto another. git cherry-pick can be useful for undoing changes. For example, say a commit is accidentally made to the wrong branch. You can switch to the correct branch and cherry-pick the commit to where it should belong.</p><h3>Recording Changes to the Repository</h3><p>Remember that each file in your working directory can be in one of two states: <em>tracked</em> or <em>untracked</em>. Tracked files are files that were in the last snapshot; they can be unmodified, modified, or staged. In short, tracked files are files that Git knows about.</p><p>Untracked files are everything else — any files in your working directory that were not in your last snapshot and are not in your staging area. When you first clone a repository, all of your files will be tracked and unmodified because Git just checked them out and you haven’t edited anything.</p><p>As you edit files, Git sees them as modified, because you’ve changed them since your last commit. As you work, you selectively stage these modified files and then commit all those staged changes, and the cycle repeats.</p><h4>Git Commands - Mind map</h4><figure><img alt="Mind map for Git commands" src="https://cdn-images-1.medium.com/max/1020/0*mvimoNJ3TCjnePgb" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9717746721aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maven is a build manager tool and mostly used in java projects.]]></title>
            <link>https://medium.com/@nipunih/maven-is-a-build-manager-tool-and-mostly-used-in-java-projects-a88b8adf96c4?source=rss-81771aa78459------2</link>
            <guid isPermaLink="false">https://medium.com/p/a88b8adf96c4</guid>
            <dc:creator><![CDATA[Nipuni Hewage]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 13:49:24 GMT</pubDate>
            <atom:updated>2020-03-29T13:49:24.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/340/0*nJrDCNkJ8zdNFDai.png" /></figure><p>Maven is a build manager tool and mostly used in java projects. Maven was built on a central concept of project object model (POM). Maven addresses two steps for any project — first how a project is built and second how the dependencies are described.</p><p>Maven is used in large projects for one of its major feature and that is dependency management. Maven just not supports dependencies for a single project, but it easily manages multi-module projects. In such projects, maven helps in maintaining a high degree of control and stability.</p><h3>How to Install and Setup Maven on Linux</h3><p>If you want to install the latest one, you can download it from Maven’s official website(<a href="https://maven.apache.org/download.cgi">https://maven.apache.org/download.cgi</a>). From here, You can download the latest available version of Apache Maven 3.6.3 . First of all, we have to install Java on the server.</p><p>Once downloaded, unpack the zip archive</p><blockquote>nipuni@nipuni-PC:~$ sudo tar -xvzf apache-maven-3.6.3-bin.tar.gz</blockquote><p>Next, rename the extracted directory.</p><blockquote>sudo mv apache-maven-3.6.3 maven</blockquote><h3>Setup environment variables</h3><p>Next, you will need to setup the environment variables such as M2_HOME, and PATH on bashrc using the following command.</p><blockquote>$ sudo vim ~/.bashrc</blockquote><p>and update the file as follows.</p><blockquote>export JAVA_HOME=/home/nipuni/installs/java/jdk1.8.0_241<br>export M2_HOME=/home/nipuni/installs/apache-maven-3.6.3<br>PATH=$JAVA_HOME/bin:$M2_HOME/bin::$PATH</blockquote><p>Make sure that all paths are correct.</p><p>Run the following command to load the environment variables</p><blockquote>$ source ~/.bashrc</blockquote><p>You can check the installation with</p><blockquote>$ echo $PATH command.</blockquote><p>Now you’re done…</p><p>And finally, verify that Maven is properly installed with,</p><blockquote>mvn -version</blockquote><h3>How Maven works</h3><p>Maven consists of three components:</p><ul><li><strong>The Maven POM</strong>(Project Object Model): The file that describes a Maven project and its dependencies.</li><li><strong>The Maven directory</strong> : The standardized format for describing a Maven project in the POM.</li><li><strong>Centralized repositories</strong>: Where third-party software is stored and discovered.</li></ul><h3>Introduction to Archetypes</h3><p>Archetype is a Maven project templating toolkit. An archetype is defined as <em>an original pattern or model from which all other things of the same kind are made</em>. Archetype will help authors create Maven project templates for users, and provides users with the means to generate parameterized versions of those project templates.</p><h3>Install the archetype and run the archetype plugin</h3><p>Now you are ready to install the archetype:</p><blockquote>mvn install</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x40p2Q3tLppu3FRiP2ioAQ.png" /></figure><p>Now that you have created an archetype, you can try it on your local system by using the following command. In this command, you need to specify the full information about the archetype you want to use (its groupId, its artifactId, its version) and the information about the new project you want to create (artifactId and groupId).</p><p><strong>Maven provides several archetype artifacts:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*D70byGNDYRJcnIlhLSm8cA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a88b8adf96c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>