<?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: John Akpakwu</title>
    <description>The latest articles on DEV Community by John Akpakwu (@apk_leo0).</description>
    <link>https://dev.to/apk_leo0</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%2F1852986%2F5f21fc35-d56e-4aac-87b1-ca2811aafbcb.png</url>
      <title>DEV Community: John Akpakwu</title>
      <link>https://dev.to/apk_leo0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/apk_leo0"/>
    <language>en</language>
    <item>
      <title>Basic Git commands</title>
      <dc:creator>John Akpakwu</dc:creator>
      <pubDate>Sun, 28 Jul 2024 22:28:48 +0000</pubDate>
      <link>https://dev.to/apk_leo0/basic-git-commands-3ibd</link>
      <guid>https://dev.to/apk_leo0/basic-git-commands-3ibd</guid>
      <description>&lt;p&gt;&lt;em&gt;Introduction&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Git is a powerful version control system used to track changes in source code, documents, and other digital content. Understanding Git commands is essential for effective collaboration and management of projects.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Basic Git Commands&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;git init&lt;/code&gt;: Initializes a new Git repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git clone&lt;/code&gt;: Clones an existing repository from a remote location.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git add &amp;lt;file&amp;gt;&lt;/code&gt;: Stages a file for the next commit.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git add .&lt;/code&gt;: Stages all changes in the current directory.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git commit -m "&amp;lt;message&amp;gt;"&lt;/code&gt;: Commits changes with a meaningful message.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git log&lt;/code&gt;: Displays a log of all commits made.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git status&lt;/code&gt;: Shows the status of changes in the repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git branch &amp;lt;branch-name&amp;gt;&lt;/code&gt;: Creates a new branch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git checkout &amp;lt;branch-name&amp;gt;&lt;/code&gt;: Switches to a different branch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git merge &amp;lt;branch-name&amp;gt;&lt;/code&gt;: Merges changes from another branch.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Intermediate Git Commands&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;git remote add &amp;lt;name&amp;gt; &amp;lt;url&amp;gt;&lt;/code&gt;: Adds a remote repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git fetch&lt;/code&gt;: Fetches changes from a remote repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git pull&lt;/code&gt;: Fetches and merges changes from a remote repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git push&lt;/code&gt;: Pushes local changes to a remote repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git diff&lt;/code&gt;: Displays differences between commits or files.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git stash&lt;/code&gt;: Temporarily saves changes to be reapplied later.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git reset &amp;lt;commit&amp;gt;&lt;/code&gt;: Resets the repository to a specific commit.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git tag &amp;lt;tag-name&amp;gt;&lt;/code&gt;: Creates a tag for a specific commit.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Advanced Git Commands&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;git rebase&lt;/code&gt;: Reapplies commits on top of another branch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git cherry-pick &amp;lt;commit&amp;gt;&lt;/code&gt;: Applies a specific commit to the current branch.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git submodule&lt;/code&gt;: Manages subprojects within a repository.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gitk --all&lt;/code&gt;: Visualizes the commit history.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git clean&lt;/code&gt;: Removes untracked files and directories.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Conclusion&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Mastering Git commands is essential for effective version control and collaboration. This article covers basic, intermediate, and advanced Git commands to help you manage your projects efficiently.&lt;/p&gt;

</description>
      <category>android</category>
      <category>git</category>
    </item>
  </channel>
</rss>
