<?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: Nisanth Gurusamy</title>
    <description>The latest articles on DEV Community by Nisanth Gurusamy (@nisanth_gurusamy_620db52b).</description>
    <link>https://dev.to/nisanth_gurusamy_620db52b</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%2F3080096%2F50f34064-89dd-4d6c-b452-82f32b8ad64b.jpg</url>
      <title>DEV Community: Nisanth Gurusamy</title>
      <link>https://dev.to/nisanth_gurusamy_620db52b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nisanth_gurusamy_620db52b"/>
    <language>en</language>
    <item>
      <title>🔧 Git-ing Things Done: Your First Journey into Version Control</title>
      <dc:creator>Nisanth Gurusamy</dc:creator>
      <pubDate>Wed, 23 Apr 2025 16:49:20 +0000</pubDate>
      <link>https://dev.to/nisanth_gurusamy_620db52b/git-ing-things-done-your-first-journey-into-version-control-50lc</link>
      <guid>https://dev.to/nisanth_gurusamy_620db52b/git-ing-things-done-your-first-journey-into-version-control-50lc</guid>
      <description>&lt;p&gt;&lt;strong&gt;__Success is the sum of small efforts, repeated day in and day out.&lt;/strong&gt;&lt;br&gt;
🌱✨📈💪&lt;br&gt;
📁 Step 1: Initialize the Git Repository&lt;br&gt;
&lt;em&gt;&lt;strong&gt;git init&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
This command initializes a new Git repository in your project folder. In my case:&lt;br&gt;
F:\24MCR074&amp;gt;git init&lt;br&gt;
Initialized empty Git repository in F:/24MCR074/.git/&lt;br&gt;
&lt;a href="https://media2.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%2Fjv0m850rwwxniisy61ck.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fjv0m850rwwxniisy61ck.png" alt="Terminal showing the Git repository being initialized" width="653" height="338"&gt;&lt;/a&gt;&lt;br&gt;
📝 Step 2: Add a File to the Staging Area&lt;br&gt;
&lt;em&gt;&lt;strong&gt;git add 24MCR074.txt&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
This stages the file so it's ready to be committed. Think of this as putting your changes into a box to be sealed and labeled.&lt;br&gt;
&lt;a href="https://media2.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%2Fqb4x5j3i3qr11ylab6wv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fqb4x5j3i3qr11ylab6wv.png" alt="File successfully added to the staging area" width="800" height="331"&gt;&lt;/a&gt;&lt;br&gt;
🗃️ Step 3: Commit Your Changes&lt;br&gt;
&lt;strong&gt;&lt;em&gt;git commit -m "Added Personal Details"&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
This saves your changes to the local repository with a message&lt;br&gt;
&lt;a href="https://media2.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%2Fl0ip8nevykh6opkaqcl6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fl0ip8nevykh6opkaqcl6.png" alt="Commit message logged" width="653" height="94"&gt;&lt;/a&gt;&lt;br&gt;
🩺 Step 4: Checkup Time-Using git status to Monitor Changes&lt;br&gt;
&lt;strong&gt;&lt;em&gt;git status&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
This shows the current state of your working directory and staging area.&lt;br&gt;
&lt;a href="https://media2.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%2Fw75jkln0w3fcw2hjd03n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fw75jkln0w3fcw2hjd03n.png" alt="The working tree is clean" width="510" height="104"&gt;&lt;/a&gt;&lt;br&gt;
🕰️ Step 5: Check Your Commit Log&lt;br&gt;
&lt;strong&gt;&lt;em&gt;git log&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
This command shows a log of all commits made:&lt;br&gt;
&lt;a href="https://media2.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%2Fdmy8yqhhq9f7c8cjvqj4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fdmy8yqhhq9f7c8cjvqj4.png" alt="he Git log output with author, timestamp, and message " width="800" height="152"&gt;&lt;/a&gt;&lt;br&gt;
🌐 Step 6: Connect to GitHub&lt;br&gt;
&lt;strong&gt;&lt;em&gt;git remote add origin &lt;a href="https://github.com/nisanthg1010/24MCR074.git" rel="noopener noreferrer"&gt;https://github.com/nisanthg1010/24MCR074.git&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
This links your local repo to a remote GitHub repository.&lt;br&gt;
![GitHub repository successfully linked]&lt;br&gt;
&lt;a href="https://media2.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%2Frqat2bks3fu9wymgmx2g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Frqat2bks3fu9wymgmx2g.png" alt="Image description" width="800" height="48"&gt;&lt;/a&gt;&lt;br&gt;
🌿 Step 7: Rename the Branch&lt;br&gt;
&lt;strong&gt;&lt;em&gt;git branch -M main&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
I renamed my branch from master to main, which is now the common default.&lt;br&gt;
&lt;a href="https://media2.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%2Fl4f6iceryxeimy5qvoev.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fl4f6iceryxeimy5qvoev.png" alt="Branch name changed from 'master' to 'main'" width="397" height="176"&gt;&lt;/a&gt;&lt;br&gt;
🚀 Step 8: Push to GitHub&lt;br&gt;
&lt;strong&gt;&lt;em&gt;git push -u origin main&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
This command uploads your code to GitHub:&lt;br&gt;
&lt;a href="https://media2.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%2Ff7q7e8fz0hev4mmo9hkm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Ff7q7e8fz0hev4mmo9hkm.png" alt="Push complete" width="756" height="247"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  🌟 Summary: 
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Version control made simple, smooth, and stylish. 🎯🖋️&lt;br&gt;
You’re now GitHub-ready and good to go! 🌍🚀&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;From solo coding to global collaboration — Git bridges it all. 🌐🤝&lt;br&gt;
Push with pride. Your code has a home now! 🏡💾&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Every line committed is a step closer to excellence. 📈🧠&lt;br&gt;
You’re not just coding, you’re crafting history. 🛠️📚&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;_Behind every git status is a developer leveling up. 🧑‍💻💡&lt;br&gt;
Keep checking, keep growing! 🌱🔁&lt;br&gt;
_&lt;/strong&gt;&lt;br&gt;
🚀 Let’s Take A Quick Look at the Code You Used:&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          # Initializes a Git repository in your project
git add &amp;lt;file&amp;gt;    # Stages the file for commit
git commit -m "message"  # Commits your changes with a message
git status        # Checks the status of your repository
git log           # View your commit history
git remote add origin &amp;lt;repo_url&amp;gt;  # Links your project to GitHub
git branch -M main    # Renames your branch to 'main'
git push -u origin main  # Pushes your local changes to GitHub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;The only way to do great work is to love what you do. – Steve Jobs&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
💖🚀 Keep coding and commit to success!&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Version control is not just about saving your code. It’s about saving your future. – Anonymous&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
⏳🔗 Your past and future projects are secured, one commit at a time!&lt;br&gt;
&lt;strong&gt;&lt;em&gt;The best way to predict the future is to create it. – Abraham Lincoln&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
🌍💪 You’re writing your own Git story — let’s make it legendary!&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>github</category>
      <category>docker</category>
      <category>vscode</category>
    </item>
  </channel>
</rss>
