<?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: Godfrey Nyarko </title>
    <description>The latest articles on DEV Community by Godfrey Nyarko  (@arabian619).</description>
    <link>https://dev.to/arabian619</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%2F1168530%2Ff998f27d-63af-4407-bf91-844b281135a7.jpeg</url>
      <title>DEV Community: Godfrey Nyarko </title>
      <link>https://dev.to/arabian619</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arabian619"/>
    <language>en</language>
    <item>
      <title>Connect a VM with VS Code for Remote Development</title>
      <dc:creator>Godfrey Nyarko </dc:creator>
      <pubDate>Thu, 27 Jun 2024 06:31:55 +0000</pubDate>
      <link>https://dev.to/arabian619/connect-a-vm-with-vs-code-for-remote-development-50n7</link>
      <guid>https://dev.to/arabian619/connect-a-vm-with-vs-code-for-remote-development-50n7</guid>
      <description>&lt;p&gt;Have you ever thought about using VS Code while accessing your virtual machine? This blog covers how to do that. By connecting your virtual machine with VS Code, you can leverage the features of both.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt;&lt;br&gt;
You should have some knowledge of VS Code and virtual machines. The following are needed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.visualstudio.com/download" rel="noopener noreferrer"&gt;VS Code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Git&lt;/li&gt;
&lt;li&gt;VirtualBox&lt;/li&gt;
&lt;li&gt;Virtual machine&lt;/li&gt;
&lt;li&gt;Vagrant&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this guide, an Ubuntu virtual machine is used. To set up your Ubuntu virtual machine, &lt;a href="https://ubuntu.com/download" rel="noopener noreferrer"&gt;click here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Getting Started:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Starting up the Virtual Machine:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Launch your Git application.&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;vagrant up&lt;/code&gt; to start the virtual machine.&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;vagrant global-status&lt;/code&gt; to check if the virtual machine is running.&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;vagrant ssh-config&lt;/code&gt; to get the configuration of the virtual box for setting up remote access in VS Code. Copy and save this configuration to your notepad.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Installing the Remote-SSH Extension in VS Code:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open VS Code and click on the &lt;code&gt;Extensions tab&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Search for &lt;code&gt;Remote SSH&lt;/code&gt; in the extension search box and click Install.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx080oa7hjxugro2ej64o.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx080oa7hjxugro2ej64o.gif" alt="Installing Remote SSH"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connecting to the Virtual Machine:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click on the &lt;code&gt;Remote SSH tab&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Click on the &lt;code&gt;+&lt;/code&gt; sign in the SSH options panel.&lt;/li&gt;
&lt;li&gt;Enter a name of your choice in the new search box and press Enter.&lt;/li&gt;
&lt;li&gt;Select &lt;code&gt;C:\Users\&amp;lt;your-username&amp;gt;\.ssh\config&lt;/code&gt; and press Enter.&lt;/li&gt;
&lt;li&gt;Select &lt;code&gt;Open Config&lt;/code&gt; from the pop-up message in the lower right-hand corner.&lt;/li&gt;
&lt;li&gt;Copy and paste the configuration from your notepad into the new panel. (&lt;em&gt;Remember to delete anything in the opened config file before pasting the configuration&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Optionally, change the Hostname from the &lt;code&gt;default&lt;/code&gt; to your preferred name.&lt;/li&gt;
&lt;li&gt;Close the panel containing the Host details.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foxfov4mf7gyvxsq8aovz.gif" alt="Configuring VM"&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;code&gt;Refresh&lt;/code&gt; on the control panel of Remote SSH.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmmvpzb8wzl9d6zfpz40l.png" alt="Refresh Remote SSH Panel"&gt;
&lt;/li&gt;
&lt;li&gt;Click on &lt;code&gt;&amp;gt;&lt;/code&gt; to find your new SSH platform.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj8exsq61g24trwj5k6y0.png" alt="Accessing VM"&gt;
&lt;/li&gt;
&lt;li&gt;Select and click on the arrow sign on your new SSH platform to connect.&lt;/li&gt;
&lt;li&gt;Select &lt;code&gt;Linux&lt;/code&gt; from the pop-up search bar (since Ubuntu is a Linux distribution).
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgeo4o12i012ayo766nhj.gif" alt="Opening VM"&gt;
&lt;/li&gt;
&lt;li&gt;Wait for the connection to be established.&lt;/li&gt;
&lt;li&gt;After connecting, click on the three dots in the upper bar of VS Code and select &lt;code&gt;Terminal&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Click on &lt;code&gt;New Terminal&lt;/code&gt; to open the terminal in VS Code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You will notice that your VS Code terminal can now access your virtual machine terminal. Remember to always &lt;code&gt;vagrant up&lt;/code&gt; your virtual machine using Git before opening VS Code after a shutdown or restart of your laptop or PC.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>softwaredevelopment</category>
      <category>vscode</category>
      <category>beginners</category>
    </item>
    <item>
      <title>GitHub Collaboration Guide: Contribute Without Forking</title>
      <dc:creator>Godfrey Nyarko </dc:creator>
      <pubDate>Thu, 28 Sep 2023 15:08:31 +0000</pubDate>
      <link>https://dev.to/arabian619/how-to-contribute-to-a-repo-without-forking-on-github-3hnd</link>
      <guid>https://dev.to/arabian619/how-to-contribute-to-a-repo-without-forking-on-github-3hnd</guid>
      <description>&lt;h2&gt;
  
  
  Introduction:
&lt;/h2&gt;

&lt;p&gt;Contributing to a GitHub repository without forking is a great way to streamline collaboration and keep your GitHub profile tidy. This guide will walk you through the process of adding a collaborator, contributing as a collaborator, and using branches for more efficient contributions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding a Collaborator as an Author:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the repository to which you want to add a collaborator. For example, let's say you want to add a collaborator to the "author_username/zero_day" repository.&lt;/li&gt;
&lt;li&gt;Click on "Settings."
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---4yNNN0h--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gaphqeh25s6dge85wmg2.PNG" alt='A screenshot image of "Settings tab" in GitHub GUI' width="800" height="58"&gt;
&lt;/li&gt;
&lt;li&gt;Navigate to "Collaborators."
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nwOBU_mE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hpx4k0pl3w7lpd99p18.PNG" alt='A screenshot image of "Collaborators tab" in GitHub GUI' width="800" height="119"&gt;
&lt;/li&gt;
&lt;li&gt;Click on Use GitHub Mobile to confirm access.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mLTr3lCz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/284m8qv5r1ebyd04n40u.PNG" alt="A screenshot of Confirmation process in GitHub" width="323" height="538"&gt;
&lt;/li&gt;
&lt;li&gt;Select "Add people."
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vHSomvGh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zkspu17e6yaj8n6mek8.PNG" alt='A screenshot image of "Add people tab" in GitHub GUI' width="793" height="319"&gt;
&lt;/li&gt;
&lt;li&gt;Enter the collaborator's username or full name.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uEb1qey5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gouct3yx95ho98xq8zva.PNG" alt="A screenshot image of where to enter collaborator's user name" width="657" height="265"&gt;
&lt;/li&gt;
&lt;li&gt;Click on Select a Collaborator above.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;An invitation email will be sent to the collaborator.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Contributing as a Collaborator:
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Once the author has added you as a collaborator, you will receive an invitation email from GitHub.&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Accept the invitation email. Simply click on the provided link to accept the collaboration invitation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open your GitHub account interface. After accepting, you will see the "author_username/zero_day" among your existing repositories.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open your terminal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Clone the new repository using the Git clone command. For instance:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://&lt;span class="o"&gt;{&lt;/span&gt;your_personal_token&lt;span class="o"&gt;}&lt;/span&gt;@github.com/&lt;span class="o"&gt;{&lt;/span&gt;author_username/zero_day&lt;span class="o"&gt;}&lt;/span&gt;.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use "git pull" to retrieve all the updated files. This ensures you have the latest changes from the repository.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git pull
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Working on a Different Branch:
&lt;/h2&gt;

&lt;p&gt;As a collaborator, it's advisable to work on a separate branch to avoid conflicts when pushing your code.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a new branch. Let's call it "Collabo-branch" as an example:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch Collabo-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Switch to the new branch you created, so your works and changes are isolated:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git checkout Collabo-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After reviewing and completing your task on the new branch, you can merge it back into the main branch. For example:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git checkout main
git merge Collabo-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;Always remember to "git pull" after changing to the main branch before you merge.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By following these steps, you can effectively collaborate on a GitHub repository without forking, thereby making the contribution process more efficient. &lt;/p&gt;

&lt;p&gt;Let me know the challenges you encounter in the comment box, and I will put forth my utmost effort to address them&lt;/p&gt;

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