<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Job Oaikhenah</title>
    <description>The latest articles on DEV Community by Job Oaikhenah (@joblyn).</description>
    <link>https://dev.to/joblyn</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F417436%2Fc61daa47-98e3-4df6-9943-0111c4d9558d.jpeg</url>
      <title>DEV Community: Job Oaikhenah</title>
      <link>https://dev.to/joblyn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joblyn"/>
    <language>en</language>
    <item>
      <title>Creating your first repository on GitHub</title>
      <dc:creator>Job Oaikhenah</dc:creator>
      <pubDate>Sun, 25 Oct 2020 22:55:02 +0000</pubDate>
      <link>https://dev.to/joblyn/creating-your-first-repository-on-github-1b7o</link>
      <guid>https://dev.to/joblyn/creating-your-first-repository-on-github-1b7o</guid>
      <description>&lt;p&gt;Hello👋 and welcome to the second article on "Git and GitHub" series! &lt;/p&gt;

&lt;p&gt;In this article, we will learn how to create a git repository. I'll believe you understand the terms 'Git' and 'GitHub'. If not, kindly refer to my &lt;a href="https://dev.to/joblyn/introduction-to-git-github-4gkm"&gt;previous article&lt;/a&gt; in which I explained them. I'll also assume you're familiar with the terminal, at least the basic commands.  &lt;/p&gt;

&lt;p&gt;So let's get kicking!💪&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1. &lt;strong&gt;Create a new repository on GitHub&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;First, you log into your GitHub account and navigate to the &lt;strong&gt;'Repositories'&lt;/strong&gt; tab. Click on the button on the top right corner, written &lt;strong&gt;New&lt;/strong&gt;. Once clicked, you should be directed to a new page where you set up your new repository. Fill in the &lt;strong&gt;Repository name&lt;/strong&gt; input box with the name you wish to give your repository. For this article, I'll call mine 'New-Repo'. You can also write in a description (optional) for your repository. For this article, I'll just type in 'New Repository'. Don't worry about the other input-fields, for now just leave them the way they are. &lt;br&gt;
Having done that, your page should look similar to this&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ormhBl-C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/p02n5xagnvqr56nyel1j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ormhBl-C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/p02n5xagnvqr56nyel1j.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
With that said and done, scroll down and click on the &lt;br&gt;
 &lt;strong&gt;Create repository&lt;/strong&gt; button.&lt;br&gt;
Now you should see a page similar to this&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WKVh9t7g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/my0s4cmfn1a16q4jg97k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WKVh9t7g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/my0s4cmfn1a16q4jg97k.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 2. &lt;strong&gt;Create a directory on the local machine&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;In your local machine (laptop, desktop etc), create a directory with the name of your GitHub Repository, in my case &lt;strong&gt;New-Repo&lt;/strong&gt;, wherever you want it to be. Create a &lt;strong&gt;README.md&lt;/strong&gt; file in the directory, describing your project.&lt;br&gt;&lt;br&gt;
Now, head on to your terminal and navigate to your directory, and execute the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This initiates the directory as a git repository. The directory now has a &lt;strong&gt;.git&lt;/strong&gt; hidden file indicating its a git repository, thus enabling you to execute git commands in the directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add origin &amp;lt;repositoryurl&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This syncs your local directory with the GitHub repository. By default, you're in the &lt;strong&gt;master&lt;/strong&gt; &lt;a href="https://thenewstack.io/dont-mess-with-the-master-working-with-branches-in-git-and-github/#:~:text=A%20branch%20is%20essentially%20is,into%2C%20and%20is%20called%20master."&gt;branch&lt;/a&gt;.&lt;br&gt;
You can try running &lt;code&gt;git status&lt;/code&gt; to confirm that.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 3. &lt;strong&gt;Push Changes to GitHub repository&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;To push changes to the GitHub repository, run the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This stages all the files in your directory for push, in our case, only the &lt;strong&gt;README.md&lt;/strong&gt; file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m 'initial commit' 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a description for your Push. Since it's our first, we'll just write 'initial commit'.&lt;/p&gt;

&lt;p&gt;And lastly,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push -u origin master 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This sets up the &lt;strong&gt;master&lt;/strong&gt; branch in the GitHub repository as the upstream branch for the &lt;strong&gt;master&lt;/strong&gt; branch in your local directory, and pushes the staged changes to the branch.&lt;/p&gt;

&lt;p&gt;Now, go back to your GitHub repository and refresh the page. What you see should be similar to this  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fl32NT2W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gldldgzn6h4c4bv49stl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fl32NT2W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gldldgzn6h4c4bv49stl.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Voila!! 😃 You've created your first GitHub repository and pushed your first change. Subsequent times, it's a similar pattern.&lt;/p&gt;

&lt;p&gt;And that's it for now guys! Thanks for the audience!  &lt;/p&gt;

&lt;p&gt;If you enjoyed this article or found it helpful, be sure to give a thumbs-up. Feel free to drop a comment. And don't forget to click the 'follow' icon to get updated on every new article.&lt;/p&gt;

&lt;p&gt;You can also find me on &lt;a href="https://twitter.com/_Joblyn_"&gt;Twitter&lt;/a&gt; and &lt;a href="https://github.com/Joblyn"&gt;GitHub&lt;/a&gt;.✌️&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Introduction to Git &amp; GitHub</title>
      <dc:creator>Job Oaikhenah</dc:creator>
      <pubDate>Mon, 19 Oct 2020 02:33:35 +0000</pubDate>
      <link>https://dev.to/joblyn/introduction-to-git-github-4gkm</link>
      <guid>https://dev.to/joblyn/introduction-to-git-github-4gkm</guid>
      <description>&lt;p&gt;Hi👋, y'all welcome to my first article in my debut technical series, "Git &amp;amp; GitHub" 😊. &lt;/p&gt;

&lt;p&gt;In this series, we will be exploring Git and GitHub as they are vital tools to your success as a developer. &lt;/p&gt;

&lt;p&gt;To begin with, in this article, we will be defining the terms Git and GitHub. As a code-newbie, you probably have heard of the above at one time or another, but unsure of what exactly it means. Not to worry anymore, as we'll be tackling that right away. SO let's get kicking...&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Git?
&lt;/h2&gt;

&lt;p&gt;Git is a free, open-source version control system. In fact, it is the most widely used version control system. Most programmers, many times, interact with it daily, and definitely, you will too as you progress in your career as a developer. &lt;br&gt;
But, what do we mean by version control system? This is a means by which programmers track code changes during development of software. This helps us to see and understand what change was made and when it was made, such that, in the event, we are better able to track down bugs or revert to a previous version of the code if the need arises.      &lt;/p&gt;

&lt;h2&gt;
  
  
  What is GitHub?
&lt;/h2&gt;

&lt;p&gt;GitHub is a cloud-based hosting service that lets you manage Git repositories. In other words, its a platform for developers to store their code and project development progress. That is to say, GitHub is designed to help developers manage Git repositories. Moreso, you can think of it as a portfolio for a developer to showcase his work. Virtually every developer has a &lt;a href="https://github.com"&gt;GitHub&lt;/a&gt; account. If you don't already have one, I advise you go sign up right away! &lt;/p&gt;

&lt;p&gt;That's it for now, guys. Thanks for the audience!😊&lt;br&gt;
Stay tuned for the next article where we'll be creating our very first GitHub repository.&lt;/p&gt;

&lt;p&gt;If you enjoyed this article or found it helpful, be sure to give a thumbs-up. Feel free to drop a comment. And don't forget to click the 'follow' icon to get updated on every new article. &lt;/p&gt;

&lt;p&gt;You can also follow me on  &lt;a href="https://twitter.com/_Joblyn_"&gt;Twitter&lt;/a&gt; and  &lt;a href="https://github.com/Joblyn/"&gt;GitHub&lt;/a&gt;.✌️&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
    </item>
  </channel>
</rss>
