<?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: Sakthivel R</title>
    <description>The latest articles on DEV Community by Sakthivel R (@developersakthi).</description>
    <link>https://dev.to/developersakthi</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%2F3080204%2F2a9d8ea0-46e3-41e6-baca-a91040666c4d.jpg</url>
      <title>DEV Community: Sakthivel R</title>
      <link>https://dev.to/developersakthi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/developersakthi"/>
    <language>en</language>
    <item>
      <title>Beyond the Basics: 10 Git Commands to Level Up Your Development Game</title>
      <dc:creator>Sakthivel R</dc:creator>
      <pubDate>Sat, 26 Apr 2025 03:53:53 +0000</pubDate>
      <link>https://dev.to/developersakthi/beyond-the-basics-10-git-commands-to-level-up-your-development-game-gm6</link>
      <guid>https://dev.to/developersakthi/beyond-the-basics-10-git-commands-to-level-up-your-development-game-gm6</guid>
      <description>&lt;h1&gt;
  
  
  🚀 Level Up with These Essential Git Commands
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Git is an indispensable tool for developers across all domains. As someone who works with both data engineering and MERN stack development, I've found these Git commands to be incredibly useful in my daily workflow. Let's explore them together!&lt;/p&gt;

&lt;h2&gt;
  
  
  Must-Know Git Commands
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. 🔍 git diff
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Show changes between files, commits, or branches.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Usage:&lt;/strong&gt; Compare your working directory with the index or a previous commit.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. 📜 git log
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Display the commit history.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Usage:&lt;/strong&gt; Track changes, find specific commits, or understand project history.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. 📥 git clone
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Clone a remote repository to your local machine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/username/repository
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. ⬇️ git pull
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Fetch and merge changes from the remote repository to your current branch.&lt;br&gt;
&lt;/p&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;
  
  
  5. ⬆️ git push
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Push your local commits to the remote repository.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  6. 🕵️ git blame
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Show who last modified each line of a file and when.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Usage:&lt;/strong&gt; Great for debugging or understanding change history.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git blame filename.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  7. ⚔️ Merge Conflicts (Concept)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Merge conflicts happen when two branches modify the same part of a file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To simulate a merge conflict:&lt;/strong&gt;&lt;br&gt;
&lt;/p&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; new-branch
&lt;span class="c"&gt;# Make changes, commit them&lt;/span&gt;
git checkout main
&lt;span class="c"&gt;# Make conflicting changes&lt;/span&gt;
git merge new-branch
&lt;span class="c"&gt;# Conflict occurs here&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll need to manually resolve the conflict in the files and commit the resolution.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. 🌿 git branch
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; List, create, or delete branches.&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="c"&gt;# List branches  &lt;/span&gt;
git branch feature   &lt;span class="c"&gt;# Create a branch  &lt;/span&gt;
git branch &lt;span class="nt"&gt;-d&lt;/span&gt; feature  &lt;span class="c"&gt;# Delete a branch&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  9. 🚀 git checkout -b
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Create and switch to a new branch in one step.&lt;br&gt;
&lt;/p&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; new-feature-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  10. 📁 .gitignore
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Purpose:&lt;/strong&gt; Tell Git which files or folders to ignore in version control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps to set up:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a .gitignore file in your root directory.&lt;/li&gt;
&lt;li&gt;Add patterns of files or folders to ignore.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;*.log
node_modules/
.env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No command is needed — Git will automatically skip tracking files that match the patterns.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Workflow Examples
&lt;/h2&gt;

&lt;p&gt;Here's how these commands fit into a typical development workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start a new project:&lt;/strong&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 clone https://github.com/username/project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a feature branch:&lt;/strong&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 &lt;span class="nt"&gt;-b&lt;/span&gt; new-feature
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Make changes and check differences:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="c"&gt;# After editing files&lt;/span&gt;
   git diff
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Commit your changes:&lt;/strong&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 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;"Add new feature"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Push to remote:&lt;/strong&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 push origin new-feature
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Keep your branch updated:&lt;/strong&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 pull origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Investigate issues:&lt;/strong&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 blame problematic-file.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;These Git commands have become essential tools in my development workflow. Whether you're working on MERN applications or data engineering projects, mastering these Git techniques will dramatically improve your efficiency and collaboration capabilities.&lt;/p&gt;

&lt;p&gt;What Git commands do you find most useful in your projects? Let me know in the comments!&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Written by Sakthivel R&lt;/em&gt;&lt;br&gt;&lt;br&gt;
Data Engineer | MERN Stack Developer&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Step-by-Step Git Commands for First-Time Repo Setup(with GitHub)</title>
      <dc:creator>Sakthivel R</dc:creator>
      <pubDate>Thu, 24 Apr 2025 04:58:23 +0000</pubDate>
      <link>https://dev.to/developersakthi/step-by-step-git-commands-for-first-time-repo-setupwith-github-2lma</link>
      <guid>https://dev.to/developersakthi/step-by-step-git-commands-for-first-time-repo-setupwith-github-2lma</guid>
      <description>&lt;h1&gt;
  
  
  🚀 Git- Git Basics for Beginners
&lt;/h1&gt;

&lt;p&gt;*👨‍💻 By Sakthivel R &lt;/p&gt;

&lt;p&gt;Hey developers! 👋&lt;br&gt;&lt;br&gt;
Here’s a beginner-friendly walk-through of basic Git commands, perfect if you're just starting out or brushing up for placements or projects. This was part of my Day  assignment, and I thought it’d be helpful to share it with the dev community too. Let’s go! 💻✨&lt;/p&gt;


&lt;h2&gt;
  
  
  🔧 Step-by-Step Git Commands
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1️⃣ Initialize a Git Repository
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This command initializes a new Git repository in your current directory. For example, it creates a repo in a folder like &lt;code&gt;24MCR086&lt;/code&gt;.&lt;/p&gt;


&lt;h3&gt;
  
  
  2️⃣ Add a File to Staging Area
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add 24MCR086.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This stages a specific file (&lt;code&gt;24MCR086.txt&lt;/code&gt;) for commit.&lt;br&gt;&lt;br&gt;
Want to stage &lt;strong&gt;everything&lt;/strong&gt; in the folder? Use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  3️⃣ Commit the File
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m "Added Personal Details"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a commit with a custom message. Make your commit messages meaningful so others can follow your changes easily.&lt;/p&gt;




&lt;h3&gt;
  
  
  4️⃣ Check Git Status
&lt;/h3&gt;



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

&lt;/div&gt;



&lt;p&gt;This shows the current state of your working directory and staged files. For example, it will show if &lt;code&gt;24MCR086.txt&lt;/code&gt; is modified but not staged.&lt;/p&gt;




&lt;h3&gt;
  
  
  5️⃣ View Commit Log
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Want to see the history of commits? This command displays all your previous commits.&lt;/p&gt;




&lt;h3&gt;
  
  
  6️⃣ Add Remote GitHub Repository
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add origin https://github.com/DeveloperSakthi/24MCR086.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This links your local Git repo to a remote GitHub repository. (Replace with your repo URL.)&lt;/p&gt;




&lt;h3&gt;
  
  
  7️⃣ Check the Current Branch
&lt;/h3&gt;



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

&lt;/div&gt;



&lt;p&gt;Displays your current branch. Initially, it might show &lt;code&gt;master&lt;/code&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  8️⃣ Rename Branch from master to main
&lt;/h3&gt;



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

&lt;/div&gt;



&lt;p&gt;Renames the current branch from &lt;code&gt;master&lt;/code&gt; to &lt;code&gt;main&lt;/code&gt;.&lt;br&gt;&lt;br&gt;
Want to rename back to master? You can use:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;






&lt;h3&gt;
  
  
  9️⃣ Set Global Git Config (One-time Setup)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.email "sakthivelravi9894@gmail.com"
git config --global user.name "DeveloperSakthi"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This sets your identity for all Git projects on your system. You only need to do this once!&lt;/p&gt;




&lt;h3&gt;
  
  
  🔟 Push Code to Remote Repo
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push -u origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pushes the local &lt;code&gt;main&lt;/code&gt; branch to GitHub and sets it to track the remote branch.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔁 Making More Changes?
&lt;/h2&gt;

&lt;p&gt;Once you've made more changes or added new files, you can follow this pattern again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add .
git commit -m "Your next update message"
git push origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  💡 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;That’s it for Day 1! These are your Git essentials. Trust me, once you get these basics down, version control becomes your best friend — especially in collaborative coding or project development 🚀&lt;/p&gt;

&lt;p&gt;If you found this helpful or want me to share more Git or dev-related content, drop a ❤️ or comment!&lt;/p&gt;

&lt;p&gt;Happy coding! 👨‍💻💥&lt;br&gt;&lt;br&gt;
&lt;em&gt;– Sakthivel R&lt;/em&gt;&lt;/p&gt;




&lt;p&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%2Fhyr233u151de9j1ynmp9.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%2Fhyr233u151de9j1ynmp9.png" alt="Image description" width="800" height="412"&gt;&lt;/a&gt;&lt;/p&gt;

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