<?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: Abigael Wairimu</title>
    <description>The latest articles on DEV Community by Abigael Wairimu (@abbymaribe).</description>
    <link>https://dev.to/abbymaribe</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%2F1365196%2F7cced25f-6aef-488b-8c2b-0e64771457b5.jpeg</url>
      <title>DEV Community: Abigael Wairimu</title>
      <link>https://dev.to/abbymaribe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abbymaribe"/>
    <language>en</language>
    <item>
      <title>7 BASIC GIT COMMANDS</title>
      <dc:creator>Abigael Wairimu</dc:creator>
      <pubDate>Sat, 11 May 2024 10:28:57 +0000</pubDate>
      <link>https://dev.to/abbymaribe/7-basic-git-commands-3cnm</link>
      <guid>https://dev.to/abbymaribe/7-basic-git-commands-3cnm</guid>
      <description>&lt;p&gt;In this article, we'll learn 7 commonly used Git commands that form the backbone of version control workflows. They will empower you as a developer to manage projects effectively and collaborate seamlessly.&lt;br&gt;
First, we must initialize a &lt;code&gt;.git&lt;/code&gt; repository on our project.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git init&lt;/code&gt;&lt;br&gt;
To initialize a new Git repository in your current directory, you can use the &lt;code&gt;git init&lt;/code&gt; command in the terminal.&lt;br&gt;
This command creates a new &lt;code&gt;.git&lt;/code&gt; directory in your current directory to track and manage your project's version history.&lt;/p&gt;

&lt;p&gt;Example: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiezdiglncsbrv6cubvka.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiezdiglncsbrv6cubvka.png" alt="An image demonstrating how git init works" width="800" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Switch to our working directory.&lt;/li&gt;
&lt;li&gt;Create a &lt;code&gt;.git&lt;/code&gt; directory in our project.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git add[file]&lt;/code&gt;&lt;br&gt;
To add all the changes in your current directory to the staging area in Git, you can use the &lt;code&gt;git add .&lt;/code&gt;&lt;br&gt;
This command stages all changes in the current directory and its subdirectories.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftzvbg3sc9lyo2tiz1r8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftzvbg3sc9lyo2tiz1r8y.png" alt="An image demonstrating how git add works" width="800" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Stage all changes made to our directory&lt;/li&gt;
&lt;li&gt;To add specific changes from the file &lt;code&gt;index.html&lt;/code&gt; to the 
 staging area in Git, you can use the &lt;code&gt;git add index.html&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git commit -m "Your commit message"&lt;/code&gt; &lt;br&gt;
This command creates a new commit with your changes and a message describing what the commit does.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc0lae7x3qvalspvqdq0n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc0lae7x3qvalspvqdq0n.png" alt="An image demonstrating how git commit works" width="800" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Commit the changes we staged.&lt;/li&gt;
&lt;li&gt;Your commit message should be brief to help you and others understand what was changed and why.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git pull&lt;/code&gt;&lt;br&gt;
To update your local repository with the latest changes from the remote repository, you can use the &lt;code&gt;git pull&lt;/code&gt; command in the terminal.&lt;br&gt;
This command fetches the changes from the remote repository and merges them into your current branch.&lt;/p&gt;

&lt;p&gt;Example: &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08ews88ggf4s44sn2zkt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08ews88ggf4s44sn2zkt.png" alt="An image demonstrating how git pull works" width="800" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After running this command, your local repository should be 
 up-to-date with the remote repository.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git push&lt;/code&gt;&lt;br&gt;
To upload your local repository changes to the remote repository, you can use the git push command in the terminal. &lt;br&gt;
This command pushes the changes from your local repository to the remote repository.&lt;/p&gt;

&lt;p&gt;Example: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frkl2dey713tjgjie1ujf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frkl2dey713tjgjie1ujf.png" alt="An image demonstrating how git push works" width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Update remote.&lt;/li&gt;
&lt;li&gt;To push your changes to the main branch of the remote 
 repository named origin, you can use the &lt;code&gt;git push -u origin 
 main command&lt;/code&gt; in the terminal.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt;&lt;br&gt;
To check the status of your local repository, you use the git status command in the terminal.&lt;br&gt;
This command shows which files have changes that are staged for the next commit and which files have changes that are not staged yet.&lt;/p&gt;

&lt;p&gt;Example: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyy7yxi7bchhgw1rs9ah4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyy7yxi7bchhgw1rs9ah4.png" alt="An image demonstrating how git status works" width="800" height="393"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check changes made to our repository.&lt;/li&gt;
&lt;li&gt;After running this command, you should see a list of files 
that have been modified, added, or deleted, along with their 
current status (staged, not staged, etc.).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git clone[repository_url]&lt;/code&gt;&lt;br&gt;
To clone a remote repository to your local machine, you can use the git clone command followed by the URL of the repository.&lt;br&gt;
This command creates a new directory with the same name as the repository, initializes a &lt;code&gt;.git&lt;/code&gt; directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version.&lt;/p&gt;

&lt;p&gt;Example: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuji8apt6qyu89z0rqckg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuji8apt6qyu89z0rqckg.png" alt="An image demonstrating how git clone works" width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you for taking the time to read this. I'll see you in the next one! &lt;br&gt;
Happy coding! &lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>gitcommands</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What are the pros and cons of using GitHub Copilot?</title>
      <dc:creator>Abigael Wairimu</dc:creator>
      <pubDate>Sat, 27 Apr 2024 23:44:30 +0000</pubDate>
      <link>https://dev.to/abbymaribe/what-are-the-pros-and-cons-of-using-github-copilot-1pa4</link>
      <guid>https://dev.to/abbymaribe/what-are-the-pros-and-cons-of-using-github-copilot-1pa4</guid>
      <description>&lt;p&gt;GitHub Copilot continues to soar to new heights in the two years since its launch. Over the years it has grown to over 1 million paid subscribers across over 37,000 organizations. This makes it the most widely adopted AI developer tool in history and it continues to redefine how developers code. &lt;/p&gt;

&lt;p&gt;Let’s analyze the pros of GitHub copilot. It:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Suggests code as you type -  You can view and incorporate suggestions from GitHub copilot directly within the browser. You can accept, partially accept, reject, or view alternative suggestions if there are any.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Answers coding questions -  GitHub Copilot Chat can generate unit test cases, propose code fixes, answer coding questions, and explain your code. But don’t forget your due diligence. Always check and test your code. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Refactors and improves code - Copilot suggests refactoring using the context of your codebase and recommends potential improvements to selected code such as improved handling of errors and edge cases, or changes to the logical flow to make the code more readable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fixes issues - Copilot can suggest possible fixes based on the error message, the code’s syntax, and the surrounding code. Also, when a command fails to run in the terminal, Copilot offers a Quick Fix to explain what happened. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Generates commit messages and PR descriptions - Copilot uses AI to describe your code changes. This feature makes writing descriptive and helpful commit messages as easy as clicking a button.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let’s see the cons of GitHub Copilot. The most evident disadvantage is that developers who heavily rely on Copilot risk being overdependent on automated suggestions. This is a problem, especially for beginners. Additionally, Copilot may generate inaccurate code that appears to be valid. &lt;/p&gt;

&lt;p&gt;To mitigate inaccurate code, you should always review and test the code. &lt;/p&gt;

&lt;p&gt;Developers must take a thoughtful approach to integrating this tool into their process. GitHub copilot is meant to increase productivity and accelerate the rate of software development, not replace the developer’s decision-making and critical thinking. &lt;/p&gt;

</description>
      <category>github</category>
      <category>githubcopilot</category>
      <category>ai</category>
      <category>microsoft</category>
    </item>
  </channel>
</rss>
