<?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: Harish .R</title>
    <description>The latest articles on DEV Community by Harish .R (@harish_r_6e377c4fc214e03).</description>
    <link>https://dev.to/harish_r_6e377c4fc214e03</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%2F3080695%2F80b2beb1-9dae-4c8c-8604-eedd56377a1e.png</url>
      <title>DEV Community: Harish .R</title>
      <link>https://dev.to/harish_r_6e377c4fc214e03</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harish_r_6e377c4fc214e03"/>
    <language>en</language>
    <item>
      <title>ML workshop day2</title>
      <dc:creator>Harish .R</dc:creator>
      <pubDate>Mon, 28 Apr 2025 17:52:59 +0000</pubDate>
      <link>https://dev.to/harish_r_6e377c4fc214e03/ml-workshop-day2-4nec</link>
      <guid>https://dev.to/harish_r_6e377c4fc214e03/ml-workshop-day2-4nec</guid>
      <description>&lt;ol&gt;
&lt;li&gt;git rebase
Reapplies commits on top of another base tip.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Used for cleaner history compared to merge.&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git rebase main&lt;br&gt;
Interactive rebase (edit, squash, reorder commits):&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git rebase -i HEAD~5&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git cherry-pick
Apply a specific commit from one branch onto another.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git cherry-pick &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git stash
Temporarily save uncommitted changes without committing them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Save changes:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git stash&lt;br&gt;
Apply last stash:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git stash apply&lt;br&gt;
See stash list:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git stash list&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git reflog
Shows the history of all HEAD movements.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Useful to recover lost commits.&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git reflog&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git reset
Undo commits.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Soft reset (keep changes staged):&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git reset --soft HEAD~1&lt;br&gt;
Mixed reset (unstage changes):&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git reset --mixed HEAD~1&lt;br&gt;
Hard reset (destroy changes):&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git reset --hard HEAD~1&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git bisect
Binary search through commits to find which commit introduced a bug.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git bisect start&lt;br&gt;
git bisect bad&lt;br&gt;
git bisect good &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git blame
Show who made each change to a file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git blame &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git clean
Remove untracked files from the working directory.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Dry run (show what would be deleted):&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git clean -n&lt;br&gt;
Actually delete:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git clean -f&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git tag
Mark specific points in history as important (like releases).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Create lightweight tag:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git tag v1.0&lt;br&gt;
Create annotated tag:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git tag -a v1.0 -m "Release version 1.0"&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git submodule
Manage repositories inside repositories.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Add submodule:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git submodule add  &lt;br&gt;
Initialize submodules:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git submodule init&lt;br&gt;
git submodule update&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git log --graph --oneline --all
Visualize the repository history in a tree format.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git log --graph --oneline --all&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git diff
Show changes between commits, branches, or working directory.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Compare working directory to staging:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git diff&lt;br&gt;
Compare two branches:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
git diff branch1..branch2&lt;/p&gt;

</description>
    </item>
    <item>
      <title>ML WORK SHOP</title>
      <dc:creator>Harish .R</dc:creator>
      <pubDate>Wed, 23 Apr 2025 18:39:36 +0000</pubDate>
      <link>https://dev.to/harish_r_6e377c4fc214e03/ml-work-shop-1lle</link>
      <guid>https://dev.to/harish_r_6e377c4fc214e03/ml-work-shop-1lle</guid>
      <description>&lt;p&gt;Step-by-Step Git Commands Execution:&lt;br&gt;
Initialize a Git repository:&lt;br&gt;
    git init&lt;br&gt;
Creates a new Git repository in the folder 24mcr032.&lt;/p&gt;

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

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

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

&lt;p&gt;View commit log:&lt;br&gt;
     git log&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;
     git remote add origin &lt;a href="https://github.com/HARISH200212/24mcr032.git" rel="noopener noreferrer"&gt;https://github.com/HARISH200212/24mcr032.git&lt;/a&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;
     git branch&lt;br&gt;
Shows the current branch is master.&lt;/p&gt;

&lt;p&gt;Rename branch from master to main:&lt;br&gt;
     git branch -M main&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;
    git config --global user.email "&lt;a href="mailto:hari733733@gmail.com"&gt;hari733733@gmail.com&lt;/a&gt;"&lt;br&gt;
git config --global user.name "HARISH200212"&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;
     git push -u origin main&lt;br&gt;
Pushes the main branch to GitHub and sets upstream tracking.**&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
**&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then , Again We will Modify or add new file means we need to follow the same steps, like&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>
