<?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: Bhuvankumar V 24MCR014</title>
    <description>The latest articles on DEV Community by Bhuvankumar V 24MCR014 (@bhuvankumar_v24mcr014_81).</description>
    <link>https://dev.to/bhuvankumar_v24mcr014_81</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%2F3101933%2F6ee72ad6-c38f-49e8-bef8-b72c3ca66488.png</url>
      <title>DEV Community: Bhuvankumar V 24MCR014</title>
      <link>https://dev.to/bhuvankumar_v24mcr014_81</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bhuvankumar_v24mcr014_81"/>
    <language>en</language>
    <item>
      <title>More you should know about git</title>
      <dc:creator>Bhuvankumar V 24MCR014</dc:creator>
      <pubDate>Mon, 28 Apr 2025 16:31:11 +0000</pubDate>
      <link>https://dev.to/bhuvankumar_v24mcr014_81/more-you-should-know-about-git-110d</link>
      <guid>https://dev.to/bhuvankumar_v24mcr014_81/more-you-should-know-about-git-110d</guid>
      <description>&lt;p&gt;You get some advanced git commands&lt;br&gt;
git stash — Save Work Without Committing Ever got stuck when you need to switch branches but don’t want to commit half-done work?&lt;br&gt;
git stash&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;It saves your changes in a "stash" and cleans your working directory.

Later, you can reapply the stashed changes with:

git stash pop

Tip: You can even stash with a message:

git stash save "WIP: fixing login bug"

2.git cherry-pick — Apply Specific Commits
Want to pick a single commit from one branch and apply it to another?

git cherry-pick &amp;lt;commit-hash&amp;gt;

Great for moving small bug fixes without merging entire branches.

3.git rebase— Rewrite History Cleanly
Instead of a messy merge, you can reapply commits on top of another branch:

git checkout feature-branch
git rebase main

Makes history linear and clean.

Interactive rebasing (git rebase -i) even lets you squash commits together!

git rebase -i HEAD~5

You can pick, squash, or reword commits easily during interactive rebase.

4.git reflog — Find Lost Commits
Deleted a branch or a commit accidentally? Don’t worry!

git reflog

It shows a log of everything you've done, including commits that aren't reachable anymore.

You can recover with:

git checkout &amp;lt;commit-hash&amp;gt;

5.git reset — Undo Changes
Soft reset (keep changes but unstage):

git reset --soft HEAD~1

Mixed reset (unstage and keep working directory):

git reset --mixed HEAD~1

Hard reset (dangerous! discard changes):

git reset --hard HEAD~1

Use hard resets carefully — once changes are gone, they're usually gone for good unless you use reflog.

6.git bisect — Find Bugs Faster
Git can automatically help you find the commit where a bug was introduced!

Start bisecting:

git bisect start

Mark the current version as bad:

git bisect bad

Mark an older working version as good:

git bisect good &amp;lt;commit-hash&amp;gt;

Git will checkout commits one by one — you test and tell Git whether it's "good" or "bad" until it narrows down the exact problematic commit.

7.git tag — Mark Important Points
Use tags for releases, versions, or milestones.

Create a lightweight tag:

git tag v1.0

Create an annotated tag:

git tag -a v1.0 -m "Release version 1.0"

Push tags:

git push origin v1.0

Or push all tags:

git push origin --tags

8.git clean — Remove Untracked Files
Want to remove junk (files not tracked by Git)?

Preview what would be deleted:

git clean -n

Actually delete them:

git clean -f

Be very careful with git clean — it’s powerful!

9.git remote prune — Clean Up Deleted Branches
Sometimes remote branches get deleted, but you still see them locally. Clean them up with:

git remote prune origin

10.git shortlog — Summarize Contributions
Want to generate a quick summary of who contributed?

git shortlog -sn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Git Commands</title>
      <dc:creator>Bhuvankumar V 24MCR014</dc:creator>
      <pubDate>Mon, 28 Apr 2025 15:40:17 +0000</pubDate>
      <link>https://dev.to/bhuvankumar_v24mcr014_81/git-commands-35cp</link>
      <guid>https://dev.to/bhuvankumar_v24mcr014_81/git-commands-35cp</guid>
      <description>&lt;p&gt;Step-by-Step Git Commands Execution:&lt;br&gt;
Initialize a Git repository:&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
Creates a new Git repository in the folder 24MCR095.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a file to staging area:&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 24MCR095.txt
Adds 24MCR095.txt to the staging area.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Commit the file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m "Added Personal Details"
Creates a commit with the message "Added Personal Details".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check Git status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git status
Shows that 24MCR095.txt has been modified but not staged.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;View commit log:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git log
Displays the commit history (one commit at this point).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add remote GitHub repository:&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/selva192003/24MCR095.git
Links the local repository to a remote GitHub repo.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check current branch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch
Shows the current branch is master.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rename branch from master to main:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch -M main
Renames the current branch to main.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set Git global config for email and username:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.email "dhoniselva192003@gmail.com"
git config --global user.name "selva192003"
Sets your global Git identity.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Push code to remote repo for the first time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push -u origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Docker file</title>
      <dc:creator>Bhuvankumar V 24MCR014</dc:creator>
      <pubDate>Mon, 28 Apr 2025 15:34:04 +0000</pubDate>
      <link>https://dev.to/bhuvankumar_v24mcr014_81/docker-file-2lfe</link>
      <guid>https://dev.to/bhuvankumar_v24mcr014_81/docker-file-2lfe</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FROM python:3.14.0a7-alpine3.21
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Install required system dependencies
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RUN apk add --no-cache build-base musl-dev linux-headers
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Install Python libraries
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RUN pip install --upgrade pip &amp;amp;&amp;amp; \
    pip install pandas scikit-learn matplotlib
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Copy and run your script
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;COPY . .
CMD [ "python", "hello_world_ml.py" ]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Build the Docker Image&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker build -t DockerUserName/dockerfilename:latest .

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the Docker Image&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run --rm DockerUserName/dockerfilename:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;List Docker Images&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker image ls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Push the Image to DockerHub&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker push DockerUserName/dockerfilename:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>docker</category>
      <category>python</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
