<?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: arielle martin</title>
    <description>The latest articles on DEV Community by arielle martin (@arielle_martin_789015cb46).</description>
    <link>https://dev.to/arielle_martin_789015cb46</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%2F3336556%2F4ce7407b-29a2-4935-b9cf-9cd9735fa523.png</url>
      <title>DEV Community: arielle martin</title>
      <link>https://dev.to/arielle_martin_789015cb46</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arielle_martin_789015cb46"/>
    <language>en</language>
    <item>
      <title>Intro to Git for Beginners: Branching, Merging, and Commit Best Practices</title>
      <dc:creator>arielle martin</dc:creator>
      <pubDate>Tue, 08 Jul 2025 23:18:35 +0000</pubDate>
      <link>https://dev.to/arielle_martin_789015cb46/intro-to-git-for-beginners-branching-merging-and-commit-best-practices-3ng4</link>
      <guid>https://dev.to/arielle_martin_789015cb46/intro-to-git-for-beginners-branching-merging-and-commit-best-practices-3ng4</guid>
      <description>&lt;p&gt;If you're new to coding, you've probably heard people talk about Git, but what exactly is it, and how do you use it?&lt;/p&gt;

&lt;p&gt;This guide breaks down branching, merging, and committing in simple, easy-to-follow steps. These are the core skills that help you keep your code organized and collaborate with others.&lt;/p&gt;

&lt;p&gt;🧠 What is Git?&lt;/p&gt;

&lt;p&gt;Git is a tool that helps you track changes in your code. Think of it like a "save" button for your code, but way more powerful.&lt;/p&gt;

&lt;p&gt;With Git, you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Go back to an earlier version of your work&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Try out new ideas without messing up your main project&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Work with other developers without stepping on each other’s toes&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🌿 What’s a Branch?&lt;/p&gt;

&lt;p&gt;A branch is like a copy of your project where you can safely make changes.&lt;/p&gt;

&lt;p&gt;Let’s say you're building a website. If you want to try a new feature—like a dark mode—you don’t want to break the main version of your site. So you create a branch to test it out.&lt;/p&gt;

&lt;p&gt;Here’s how to do it:&lt;/p&gt;

&lt;p&gt;git checkout -b dark-mode&lt;/p&gt;

&lt;p&gt;This creates a new branch called dark-mode and switches you to it.&lt;/p&gt;

&lt;p&gt;When you’re done working, you can go back to the main version like this:&lt;/p&gt;

&lt;p&gt;git checkout main&lt;/p&gt;

&lt;p&gt;🔀 How to Merge Your Work&lt;br&gt;
Once your new feature is working and tested, you’ll want to merge it into your main code.&lt;/p&gt;

&lt;p&gt;Here’s what to do:&lt;br&gt;
to save your changes&lt;/p&gt;

&lt;p&gt;git add .&lt;br&gt;
git commit -m "Add dark mode feature"&lt;/p&gt;

&lt;p&gt;to switch back to main branch&lt;/p&gt;

&lt;p&gt;git checkout main&lt;/p&gt;

&lt;p&gt;to merge your changes into main&lt;/p&gt;

&lt;p&gt;git merge dark-mode&lt;/p&gt;

&lt;p&gt;This brings all your changes from the dark-mode branch into the main project.&lt;/p&gt;

&lt;p&gt;Before merging, make sure your main branch is up to date:&lt;/p&gt;

&lt;p&gt;git pull origin main&lt;/p&gt;

&lt;p&gt;✅ Commit Messages: Say What You Did&lt;br&gt;
Every time you save your changes in Git, you make a commit. This is like writing a note that says, “Here’s what I just changed.”&lt;/p&gt;

&lt;p&gt;Good commit messages help you and others understand what happened.&lt;/p&gt;

&lt;p&gt;Tips:&lt;/p&gt;

&lt;p&gt;Keep it short and clear&lt;/p&gt;

&lt;p&gt;Start with an action word (like “Add,” “Fix,” “Update”)&lt;/p&gt;

&lt;p&gt;Examples:&lt;br&gt;
git commit -m "Fix broken link on homepage"&lt;br&gt;
git commit -m "Add contact form"&lt;/p&gt;

&lt;p&gt;You're on Your Way 🚀&lt;br&gt;
Learning Git takes practice, but once you get the hang of it, you’ll wonder how you ever coded without it.&lt;/p&gt;

&lt;p&gt;Want more tips? Visit my portfolio for tutorials, projects, and resources to help you grow.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
