<?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: Thiru Selvam P </title>
    <description>The latest articles on DEV Community by Thiru Selvam P  (@thiru_selvamp).</description>
    <link>https://dev.to/thiru_selvamp</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%2F3082232%2F14d98fbf-4f88-42b5-aad7-95ad957f51e3.png</url>
      <title>DEV Community: Thiru Selvam P </title>
      <link>https://dev.to/thiru_selvamp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thiru_selvamp"/>
    <language>en</language>
    <item>
      <title>GIT-HUB COMMANDS!</title>
      <dc:creator>Thiru Selvam P </dc:creator>
      <pubDate>Fri, 25 Apr 2025 09:03:56 +0000</pubDate>
      <link>https://dev.to/thiru_selvamp/git-hub-commands-5819</link>
      <guid>https://dev.to/thiru_selvamp/git-hub-commands-5819</guid>
      <description>&lt;p&gt;Initialize a Git repository:&lt;br&gt;
    &lt;code&gt;git init&lt;/code&gt;&lt;br&gt;
Creates a new Git repository in the folder 24MCR118.&lt;/p&gt;

&lt;p&gt;Add a file to staging area:&lt;br&gt;
    &lt;code&gt;git add 24MCR118.txt&lt;/code&gt;&lt;br&gt;
Adds 24MCR118.txt to the staging area.&lt;/p&gt;

&lt;p&gt;Commit the file:&lt;br&gt;
    &lt;code&gt;git commit -m "Added Personal Details"&lt;/code&gt;&lt;br&gt;
Creates a commit with the message "Added Personal Details".&lt;/p&gt;

&lt;p&gt;Check Git status:&lt;br&gt;
     &lt;code&gt;git status&lt;/code&gt;&lt;br&gt;
Shows that 24MCR118.txt has been modified but not staged.&lt;/p&gt;

&lt;p&gt;View commit log:&lt;br&gt;
     &lt;code&gt;git log&lt;/code&gt;&lt;br&gt;
Displays the commit history (one commit at this point).&lt;/p&gt;

&lt;p&gt;Add remote GitHub repository:&lt;br&gt;
     &lt;code&gt;git remote add origin https://github.com/Thiruselvam-P/24MCR118&lt;/code&gt;&lt;br&gt;
Links the local repository to a remote GitHub repo.&lt;/p&gt;

&lt;p&gt;Check current branch:&lt;br&gt;
     &lt;code&gt;git branch&lt;/code&gt;&lt;br&gt;
Shows the current branch is master.&lt;/p&gt;

&lt;p&gt;Rename branch from master to main:&lt;br&gt;
     &lt;code&gt;git branch -M main&lt;/code&gt;&lt;br&gt;
Renames the current branch to main.&lt;/p&gt;

&lt;p&gt;Set Git global config for email and username:&lt;br&gt;
    &lt;code&gt;git config --global user.email "thirubscct@gmail.com"&lt;/code&gt;&lt;br&gt;
        &lt;code&gt;git config --global user.name "Thiruselvam-P"&lt;/code&gt;&lt;br&gt;
Sets your global Git identity.&lt;/p&gt;

&lt;p&gt;Push code to remote repo for the first time:&lt;br&gt;
     &lt;code&gt;git push -u origin main&lt;/code&gt;&lt;br&gt;
Pushes the main branch to GitHub and sets upstream tracking.&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%2Fhtbvrgbbswn55wt4ldgs.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%2Fhtbvrgbbswn55wt4ldgs.png" alt="Image description" width="800" height="571"&gt;&lt;/a&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%2F6evvevcqewg6sm5zw4kx.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%2F6evvevcqewg6sm5zw4kx.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then , Again We will Modify or add new file means we need to follow the same steps, like&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 “message”
    git push origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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