<?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: Lucy Anyango</title>
    <description>The latest articles on DEV Community by Lucy Anyango (@lucy_anyango_d6aa9788c23a).</description>
    <link>https://dev.to/lucy_anyango_d6aa9788c23a</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4071786%2F97f99e5c-739a-48e9-a3b0-a6ae5aea3c7d.jpg</url>
      <title>DEV Community: Lucy Anyango</title>
      <link>https://dev.to/lucy_anyango_d6aa9788c23a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lucy_anyango_d6aa9788c23a"/>
    <language>en</language>
    <item>
      <title>GIT WORKFLOW</title>
      <dc:creator>Lucy Anyango</dc:creator>
      <pubDate>Mon, 24 Aug 2026 20:31:46 +0000</pubDate>
      <link>https://dev.to/lucy_anyango_d6aa9788c23a/git-workflow-j0b</link>
      <guid>https://dev.to/lucy_anyango_d6aa9788c23a/git-workflow-j0b</guid>
      <description>&lt;p&gt;&lt;strong&gt;## What is Git?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Git is a version control system used to track changes in files and maintain a history of a project.&lt;/p&gt;

&lt;p&gt;It allows you to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Track changes&lt;/li&gt;
&lt;li&gt;Create versions of your work&lt;/li&gt;
&lt;li&gt;Work with branches&lt;/li&gt;
&lt;li&gt;Collaborate with others&lt;/li&gt;
&lt;li&gt;Return to previous versions&lt;/li&gt;
&lt;li&gt;Git vs GitHub&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Git runs on your computer and tracks your project locally.&lt;/p&gt;

&lt;p&gt;GitHub is an online platform where Git repositories can be stored, shared, and collaborated on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## The Basic Git Workflow&lt;/strong&gt;&lt;br&gt;
Important workflow to understand is:&lt;/p&gt;

&lt;p&gt;Working Directory&lt;br&gt;
       ↓&lt;br&gt;
    git add&lt;br&gt;
       ↓&lt;br&gt;
Staging Area&lt;br&gt;
       ↓&lt;br&gt;
  git commit&lt;br&gt;
       ↓&lt;br&gt;
Local Repository&lt;br&gt;
       ↓&lt;br&gt;
   git push&lt;br&gt;
       ↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## GitHub&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check your changes
git status&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Shows which files have been added, modified, or are waiting to be staged.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Stage changes
git add .&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Moves your changes to the staging area.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Commit changes
git commit -m "Update project files"&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Creates a saved version of the staged changes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Push to GitHub
git push&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Uploads your committed changes to the GitHub repository.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## Creating a Repository&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create a project folder and initialize Git:&lt;/p&gt;

&lt;p&gt;mkdir my-project&lt;br&gt;
cd my-project&lt;br&gt;
git init&lt;/p&gt;

&lt;p&gt;git init turns the folder into a Git repo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## Connecting to GitHub&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Connect your local repository to GitHub:&lt;/p&gt;

&lt;p&gt;git remote add origin &lt;a href="mailto:git@github.com"&gt;git@github.com&lt;/a&gt;:username/repository.git&lt;/p&gt;

&lt;p&gt;Check the connection:&lt;/p&gt;

&lt;p&gt;git remote -v&lt;/p&gt;

&lt;p&gt;Then push the project:&lt;/p&gt;

&lt;p&gt;git branch -M main&lt;br&gt;
git push -u origin main&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;## Git Commands to Remember&lt;br&gt;
Command Purpose&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;git status    Check changes&lt;/li&gt;
&lt;li&gt;git add . Stage changes&lt;/li&gt;
&lt;li&gt;git commit -m "message"   Save changes&lt;/li&gt;
&lt;li&gt;git push  Upload to GitHub&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Remember this workflow:&lt;/p&gt;

&lt;p&gt;EDIT&lt;br&gt;
 ↓&lt;br&gt;
git status&lt;br&gt;
 ↓&lt;br&gt;
git add&lt;br&gt;
 ↓&lt;br&gt;
git commit&lt;br&gt;
 ↓&lt;br&gt;
git push&lt;br&gt;
 ↓&lt;br&gt;
GITHUB&lt;/p&gt;

&lt;p&gt;Once you understand this cycle, you have the best foundation for using Git and GitHub effectively.&lt;/p&gt;

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