<?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: Advait Shukla</title>
    <description>The latest articles on DEV Community by Advait Shukla (@advait2088).</description>
    <link>https://dev.to/advait2088</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%2F920744%2Ff9b5b07b-133e-44e0-8ee7-0d8fac678415.png</url>
      <title>DEV Community: Advait Shukla</title>
      <link>https://dev.to/advait2088</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/advait2088"/>
    <language>en</language>
    <item>
      <title>From Local to Global: Learning Git &amp; GitHub</title>
      <dc:creator>Advait Shukla</dc:creator>
      <pubDate>Thu, 24 Jul 2025 11:27:34 +0000</pubDate>
      <link>https://dev.to/advait2088/from-local-to-global-learning-git-github-fib</link>
      <guid>https://dev.to/advait2088/from-local-to-global-learning-git-github-fib</guid>
      <description>&lt;p&gt;🤔 Ever found yourself asking...&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What exactly is Git, and why do developers swear by it?&lt;/li&gt;
&lt;li&gt;Is GitHub just cloud storage for code?&lt;/li&gt;
&lt;li&gt;How do teams collaborate on the same codebase without chaos?&lt;/li&gt;
&lt;li&gt;What’s a pull request or a fork? And why are people ‘starring’ repositories?&lt;/li&gt;
&lt;li&gt;How can GitHub Copilot help me write code faster?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If yes, then this blog is your go-to beginner’s guide. Let’s unravel the magic behind Git and GitHub, step-by-step, from installation to collaboration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🧠 What Is Git?&lt;/strong&gt;&lt;br&gt;
Git is a version control system i.e it is a tool that helps you track changes in your code, go back to previous versions, and collaborate without losing your work.&lt;/p&gt;

&lt;p&gt;Imagine working on a document where every edit is saved, and you can jump between versions, create alternate drafts (branches), and even merge others' suggestions. That’s Git!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;☁️ What Is GitHub?&lt;/strong&gt;&lt;br&gt;
GitHub is a cloud-based platform built around Git. It allows you to store, share, and collaborate on Git repositories with anyone around the world.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Think of GitHub as social media for developers:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You &lt;em&gt;“follow”&lt;/em&gt; projects.&lt;/li&gt;
&lt;li&gt;You &lt;em&gt;“star”&lt;/em&gt; repositories you like.&lt;/li&gt;
&lt;li&gt;You &lt;em&gt;“fork”&lt;/em&gt; them to customize your own version.&lt;/li&gt;
&lt;li&gt;You open &lt;em&gt;“issues”&lt;/em&gt; to report bugs or suggest features.&lt;/li&gt;
&lt;li&gt;And you raise &lt;em&gt;“pull requests”&lt;/em&gt; to contribute to others’ work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Basic Git &amp;amp; GitHub Terminologies&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before we dive into hands-on steps, let’s understand some common terms you'll see frequently when working with Git and GitHub:&lt;/p&gt;
&lt;h4&gt;
  
  
  🗂️ Repository (Repo)
&lt;/h4&gt;

&lt;p&gt;A repository is like a folder that contains all your project files and the entire history of changes made to those files. It can be &lt;strong&gt;local&lt;/strong&gt; (on your computer) or &lt;strong&gt;remote&lt;/strong&gt; (on GitHub).&lt;/p&gt;
&lt;h4&gt;
  
  
  💾 Commit
&lt;/h4&gt;

&lt;p&gt;A commit is a snapshot of your project at a specific point in time. Think of it like hitting "save" with a message explaining what you changed.&lt;/p&gt;
&lt;h4&gt;
  
  
  🔼 Push / 🔽 Pull
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Push&lt;/code&gt;: Sends your changes from your local machine to the GitHub repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Pull&lt;/code&gt;: Fetches the latest changes from the GitHub repo to your local machine.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
  
  
  🌿 Branch
&lt;/h4&gt;

&lt;p&gt;A branch is a separate version of your code where you can experiment without affecting the main codebase. Developers often use branches to work on new features or fix bugs.&lt;/p&gt;
&lt;h4&gt;
  
  
  🔀 Merge
&lt;/h4&gt;

&lt;p&gt;When you're happy with the changes in your branch, you can merge it into the main branch to include those updates in the final project.&lt;/p&gt;
&lt;h4&gt;
  
  
  🍴 Fork
&lt;/h4&gt;

&lt;p&gt;Forking a repo means copying someone else's GitHub repository to your own account. It's commonly used when you want to contribute to open-source projects.&lt;/p&gt;
&lt;h4&gt;
  
  
  🌟 Star
&lt;/h4&gt;

&lt;p&gt;Starring a repository means you like it or want to bookmark it for later. It’s similar to “liking” a post.&lt;/p&gt;
&lt;h4&gt;
  
  
  🔁 Pull Request (PR)
&lt;/h4&gt;

&lt;p&gt;When you make changes in your fork or branch and want to merge them into the original repository, you create a Pull Request. The owner can review, suggest changes, and approve it.&lt;/p&gt;
&lt;h4&gt;
  
  
  ❗ Issues
&lt;/h4&gt;

&lt;p&gt;Issues are used to report bugs, suggest enhancements, or ask questions related to the project. They help manage collaboration and improvements.&lt;/p&gt;
&lt;h4&gt;
  
  
  🤖 GitHub Copilot
&lt;/h4&gt;

&lt;p&gt;GitHub Copilot is an AI-powered tool (developed by GitHub &amp;amp; OpenAI) that suggests code in real time inside your code editor. It helps you write code faster and learn along the way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setting Up Git on Your Machine&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;On Your Command Prompt or VS code Terminal&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Install Git&lt;br&gt;
Windows: Download Git &lt;a href="https://dev.tourl"&gt;git-scm.com&lt;/a&gt;&lt;br&gt;
macOS: &lt;code&gt;brew install git&lt;/code&gt;&lt;br&gt;
Linux: &lt;code&gt;sudo apt install git&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Step 2:&lt;/strong&gt; Verify Installation&lt;br&gt;
&lt;code&gt;git --version&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Step 3:&lt;/strong&gt; Set Your Identity&lt;br&gt;
&lt;code&gt;git config --global user.name "Your Name"&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git config --global user.email "you@example.com"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's Set-up Your First Git Repository&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Create a Project Folder&lt;br&gt;
&lt;code&gt;mkdir my-first-project&lt;/code&gt;&lt;br&gt;
&lt;code&gt;cd my-first-project&lt;/code&gt;&lt;br&gt;
 &lt;strong&gt;Step 2:&lt;/strong&gt; Initialize Git&lt;br&gt;
&lt;code&gt;git init&lt;/code&gt;&lt;br&gt;
 &lt;strong&gt;Step 3:&lt;/strong&gt; Add a File&lt;br&gt;
&lt;code&gt;echo "# My First Git Project" &amp;gt; README.md&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This creates a file named README.md and prints "# My First Git Project" on your terminal.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Stage &amp;amp; Commit&lt;br&gt;
&lt;code&gt;git add .&lt;/code&gt;&lt;br&gt;
&lt;code&gt;git commit -m "Initial commit"&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Step 5:&lt;/strong&gt; Create Repository on GitHub&lt;br&gt;
Go to GitHub&lt;br&gt;
Click + &amp;gt; New Repository&lt;br&gt;
Name it &lt;em&gt;my-first-project&lt;/em&gt; and click Create Repository&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connect local project to remote&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;git remote add origin https://github.com/yourusername/yourrepo.git
git branch -M main
git push -u origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;here yourrepo = my-first-project&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Git Basics&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;git init #Initialize a Git repository
git status #Check the status of your repo
git add . #Add current files to staging or
git add &amp;lt;file&amp;gt; # Stage file for commit
git commit -m "message" # Commit changes
git log # View commit history
git pull # Fetch and merge from remote
git push # Push changes to GitHub
git branch # List branches
git checkout -b new-branch # Create &amp;amp; switch branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Common Workflows&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Clone a repository&lt;br&gt;
&lt;code&gt;git clone https://github.com/username/repo.git&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Push changes to GitHub&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Pull updates
&lt;code&gt;git pull origin main&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pro Tips&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Write clear commit messages&lt;br&gt;
Use &lt;em&gt;&lt;code&gt;.gitignore&lt;/code&gt;&lt;/em&gt; to skip unnecessary files&lt;br&gt;
Create branches for new features: git checkout -b new-feature&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Finally&lt;/strong&gt;&lt;br&gt;
Git and GitHub might seem intimidating, but once you start using them regularly, you'll feel confident managing and collaborating on projects.&lt;br&gt;
Whether you're building your portfolio, contributing to open-source, or working in a team, Git is now your best friend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ready to Level Up?&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;🚀 Start Your GitHub Journey Today!&lt;/em&gt;&lt;br&gt;
Start using GitHub Copilot to write code faster, explore inspiring open-source projects, and contribute like a pro with your own issues and pull requests. Whether you’re fixing bugs, collaborating with peers, or building your next portfolio project on your GitHub playground.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;💬 Got questions or want to dive deeper?&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/advait2088/" rel="noopener noreferrer"&gt;Linkedin&lt;/a&gt; &lt;br&gt;
Feel free to DM or connect with me to learn more about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unlocking the GitHub Student Developer Pack&lt;/li&gt;
&lt;li&gt;Real-world Git/GitHub scenarios&lt;/li&gt;
&lt;li&gt;Collaboration best practices&lt;/li&gt;
&lt;li&gt;Hosting your portfolio with GitHub Pages&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s build together and grow together. 🌱💻&lt;br&gt;
Happy Coding! 💙&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>beginners</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
