<?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>Forem: Amulya Magadi</title>
    <description>The latest articles on Forem by Amulya Magadi (@amulya_magadi_3f023b6fc0d).</description>
    <link>https://forem.com/amulya_magadi_3f023b6fc0d</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%2F3877083%2F637317f9-5111-4c59-9ebe-2af787481ec3.jpg</url>
      <title>Forem: Amulya Magadi</title>
      <link>https://forem.com/amulya_magadi_3f023b6fc0d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/amulya_magadi_3f023b6fc0d"/>
    <language>en</language>
    <item>
      <title>Day 02 : Mastering Branching and Merging in Git</title>
      <dc:creator>Amulya Magadi</dc:creator>
      <pubDate>Wed, 15 Apr 2026 17:03:56 +0000</pubDate>
      <link>https://forem.com/amulya_magadi_3f023b6fc0d/day-02-mastering-branching-and-merging-in-git-4jfa</link>
      <guid>https://forem.com/amulya_magadi_3f023b6fc0d/day-02-mastering-branching-and-merging-in-git-4jfa</guid>
      <description>&lt;p&gt;Today’s learning focused on one of the most powerful features of Git — &lt;strong&gt;branching and merging&lt;/strong&gt;. This concept is essential for real-world development, especially when working in teams or managing multiple features simultaneously.&lt;/p&gt;




&lt;h3&gt;
  
  
  🚀 What is Branching?
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;branch&lt;/strong&gt; in Git is essentially a separate line of development. It allows you to work on new features, bug fixes, or experiments without affecting the main codebase.&lt;/p&gt;

&lt;p&gt;By default, every repository starts with a branch called:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;main&lt;/code&gt; (or sometimes &lt;code&gt;master&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🌿 Why Use Branches?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Develop features independently&lt;/li&gt;
&lt;li&gt;Fix bugs without disturbing stable code&lt;/li&gt;
&lt;li&gt;Collaborate with team members efficiently&lt;/li&gt;
&lt;li&gt;Maintain clean project history&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🛠️ Important Branching Commands
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. Check existing branches
&lt;/h4&gt;



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

&lt;/div&gt;



&lt;h4&gt;
  
  
  2. Create a new branch
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch feature1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  3. Switch to a branch
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git checkout feature1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Modern alternative (recommended):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git switch feature1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  4. Create and switch in one step
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git checkout &lt;span class="nt"&gt;-b&lt;/span&gt; feature2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Modern alternative:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git switch &lt;span class="nt"&gt;-c&lt;/span&gt; feature2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  5. Delete a branch
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch &lt;span class="nt"&gt;-d&lt;/span&gt; feature1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Force delete (if not merged):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git branch &lt;span class="nt"&gt;-D&lt;/span&gt; feature1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  🔀 What is Merging?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Merging&lt;/strong&gt; is the process of combining changes from one branch into another.&lt;/p&gt;

&lt;p&gt;Typically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Work is done in a feature branch&lt;/li&gt;
&lt;li&gt;Then merged into &lt;code&gt;main&lt;/code&gt; after completion&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🔧 Important Merging Commands
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. Switch to target branch (usually main)
&lt;/h4&gt;



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

&lt;/div&gt;



&lt;h4&gt;
  
  
  2. Merge another branch into current branch
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git merge feature2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  ⚠️ Merge Conflicts
&lt;/h3&gt;

&lt;p&gt;Sometimes, Git cannot automatically merge changes. This happens when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Same file&lt;/li&gt;
&lt;li&gt;Same lines modified in different branches&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In such cases:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Git marks conflict in files&lt;/li&gt;
&lt;li&gt;You manually resolve it&lt;/li&gt;
&lt;li&gt;Then run:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Resolved merge conflict"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  📊 Useful Commands for Workflow
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Check branch status
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  View commit history
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git log &lt;span class="nt"&gt;--oneline&lt;/span&gt; &lt;span class="nt"&gt;--graph&lt;/span&gt; &lt;span class="nt"&gt;--all&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Push branch to GitHub
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push origin feature2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Pull latest changes before merging
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git pull origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  🧠 Key Takeaways
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Branching allows safe and parallel development&lt;/li&gt;
&lt;li&gt;Always create a branch before starting new work&lt;/li&gt;
&lt;li&gt;Merge carefully and handle conflicts properly&lt;/li&gt;
&lt;li&gt;Keep your branches updated with &lt;code&gt;main&lt;/code&gt; regularly&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  📌 Final Thought
&lt;/h3&gt;

&lt;p&gt;Branching and merging are the backbone of collaborative development in Git. Once mastered, they make your workflow cleaner, safer, and much more professional.&lt;/p&gt;

&lt;p&gt;Today was a major step forward in understanding how real-world development actually happens!&lt;/p&gt;




</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>git</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Starting My GitHUB Journey – Day 01</title>
      <dc:creator>Amulya Magadi</dc:creator>
      <pubDate>Mon, 13 Apr 2026 16:42:58 +0000</pubDate>
      <link>https://forem.com/amulya_magadi_3f023b6fc0d/starting-my-aws-journey-learning-in-public-3p3b</link>
      <guid>https://forem.com/amulya_magadi_3f023b6fc0d/starting-my-aws-journey-learning-in-public-3p3b</guid>
      <description>&lt;p&gt;Git &amp;amp; GitHub Fundamentals&lt;/p&gt;

&lt;p&gt;Today I started my journey with version control using Git and GitHub. I focused on understanding the core concepts and practicing essential commands that form the foundation of modern development and DevOps workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I Learned&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I explored the purpose of version control and how Git helps track changes, maintain history, and enable collaboration. I also understood how GitHub acts as a remote repository platform to store and manage code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Commands Practiced
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git status&lt;/strong&gt;&lt;br&gt;
Used to check the current state of the working directory and staging area.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git add&lt;/strong&gt;&lt;br&gt;
Moves changes from the working directory to the staging area.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git commit&lt;/strong&gt;&lt;br&gt;
Saves a snapshot of staged changes with a meaningful message.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git log&lt;/strong&gt;&lt;br&gt;
Displays commit history, helping track changes over time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;git push&lt;/strong&gt;&lt;br&gt;
Uploads local commits to a remote repository on GitHub.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Key Understanding
&lt;/h3&gt;

&lt;p&gt;I clearly understood the Git workflow:&lt;br&gt;
Working Directory → Staging Area → Local Repository → Remote Repository&lt;/p&gt;

&lt;p&gt;This flow is critical for managing code efficiently and avoiding mistakes.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Takeaway
&lt;/h3&gt;

&lt;p&gt;Git is not just a tool but a fundamental skill for any developer or DevOps engineer. Even basic commands provide strong control over code changes and history.&lt;/p&gt;

&lt;p&gt;Next, I plan to dive deeper into branching and collaboration workflows.&lt;/p&gt;

&lt;h1&gt;
  
  
  Git #GitHub #DevOps #LearningJourney #VersionControl
&lt;/h1&gt;

</description>
      <category>aws</category>
      <category>beginners</category>
      <category>career</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
