<?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: Jayesh Verma</title>
    <description>The latest articles on DEV Community by Jayesh Verma (@jayesh_verma_9cff177f8fff).</description>
    <link>https://dev.to/jayesh_verma_9cff177f8fff</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%2F3239476%2F5d3ac519-55d2-4ad2-aed5-af2ef9f50096.png</url>
      <title>DEV Community: Jayesh Verma</title>
      <link>https://dev.to/jayesh_verma_9cff177f8fff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jayesh_verma_9cff177f8fff"/>
    <language>en</language>
    <item>
      <title>How I Moved a Subfolder to a New GitHub Repo With Full Git History</title>
      <dc:creator>Jayesh Verma</dc:creator>
      <pubDate>Sat, 14 Jun 2025 19:22:17 +0000</pubDate>
      <link>https://dev.to/jayesh_verma_9cff177f8fff/how-i-moved-a-subfolder-to-a-new-github-repo-with-full-git-history-1dh2</link>
      <guid>https://dev.to/jayesh_verma_9cff177f8fff/how-i-moved-a-subfolder-to-a-new-github-repo-with-full-git-history-1dh2</guid>
      <description>&lt;h2&gt;
  
  
  How I Moved a Subfolder to a New GitHub Repo With Full Git History
&lt;/h2&gt;

&lt;p&gt;Recently, I needed to move a subfolder named &lt;strong&gt;&lt;code&gt;Day4 Backend&lt;/code&gt;&lt;/strong&gt; from one of my large GitHub repositories (&lt;code&gt;Backend-Practice&lt;/code&gt;) into a &lt;strong&gt;separate repository&lt;/strong&gt;, while &lt;strong&gt;preserving the entire commit history&lt;/strong&gt; of that folder.&lt;/p&gt;

&lt;p&gt;Turns out, this is totally possible — and actually quite easy using a powerful tool called &lt;code&gt;git filter-repo&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Here’s how I did it 👇&lt;/p&gt;




&lt;h2&gt;
  
  
  🧰 Tools You’ll Need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Git installed on your system&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/newren/git-filter-repo" rel="noopener noreferrer"&gt;&lt;code&gt;git filter-repo&lt;/code&gt;&lt;/a&gt; – a faster and safer alternative to &lt;code&gt;git filter-branch&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;💡 Install &lt;code&gt;git filter-repo&lt;/code&gt; using pip:&lt;/p&gt;


&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;git-filter-repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  📁 Scenario
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Source repository&lt;/strong&gt;:&lt;br&gt;
&lt;code&gt;https://github.com/Jv2350/Backend-Practice&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Subfolder to extract&lt;/strong&gt;:&lt;br&gt;
&lt;code&gt;Day4 Backend&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Target repository&lt;/strong&gt;:&lt;br&gt;
&lt;code&gt;https://github.com/Jv2350/Video-Hosting-Website&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;My goal was to &lt;strong&gt;move only &lt;code&gt;Day4 Backend&lt;/code&gt; into a new repository&lt;/strong&gt; with all its commits intact.&lt;/p&gt;


&lt;h2&gt;
  
  
  🚀 Step-by-Step Guide
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1️⃣ Clone the original repository
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Jv2350/Backend-Practice.git Video-Hosting-Website
&lt;span class="nb"&gt;cd &lt;/span&gt;Video-Hosting-Website
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  2️⃣ Extract the subfolder using &lt;code&gt;git filter-repo&lt;/code&gt;
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git filter-repo &lt;span class="nt"&gt;--subdirectory-filter&lt;/span&gt; &lt;span class="s2"&gt;"Day4 Backend"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;✅ This will:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remove everything except the Day4 Backend folder&lt;/li&gt;
&lt;li&gt;Move its contents to the root&lt;/li&gt;
&lt;li&gt;Retain only the commits that touched that folder&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  3️⃣ Create a new GitHub repo
&lt;/h3&gt;

&lt;p&gt;Go to GitHub and create a new repo, e.g., &lt;code&gt;Video-Hosting-Website&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then add it as a remote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin https://github.com/Jv2350/Video-Hosting-Website.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  4️⃣ Push your clean history
&lt;/h3&gt;



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

&lt;/div&gt;






&lt;h2&gt;
  
  
  ✅ Final Result
&lt;/h2&gt;

&lt;p&gt;Now your new repository will:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contain only the contents of the Day4 Backend folder&lt;/li&gt;
&lt;li&gt;Have a clean project root&lt;/li&gt;
&lt;li&gt;Retain all commit history related to that folder only&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🔗 Here's my result:&lt;br&gt;
👉 &lt;a href="https://github.com/Jv2350/Video-Hosting-Website" rel="noopener noreferrer"&gt;github.com/Jv2350/Video-Hosting-Website&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  🐞 Common Errors &amp;amp; Fixes
&lt;/h2&gt;

&lt;p&gt;❌ &lt;strong&gt;No such remote: 'origin'&lt;/strong&gt;&lt;br&gt;
After using &lt;code&gt;git filter-repo&lt;/code&gt;, the default remote is removed.&lt;br&gt;
👉 &lt;strong&gt;Fix&lt;/strong&gt;: Just skip &lt;code&gt;git remote rename&lt;/code&gt; and directly add a new remote with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin &amp;lt;url&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;❌ &lt;strong&gt;Spaces in URLs&lt;/strong&gt;&lt;br&gt;
Make sure your GitHub repo name doesn’t contain spaces. Use hyphens instead, like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;https://github.com/Jv2350/Video-Hosting-Website.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🧼 Bonus: Clean Up
&lt;/h2&gt;

&lt;p&gt;Now that your repo is split and clean, consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding a &lt;code&gt;README.md&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Creating a &lt;code&gt;.gitignore&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Setting up a new &lt;code&gt;LICENSE&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💬 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Splitting a subfolder into a new GitHub repo without losing history is easier than it sounds — and &lt;code&gt;git filter-repo&lt;/code&gt; makes it lightning fast ⚡&lt;/p&gt;

&lt;p&gt;This method helped me clean up my projects, improve modularity, and organize my work better.&lt;/p&gt;

&lt;p&gt;I hope this helps you too! 🙌&lt;br&gt;
If you found it useful, drop a comment or share it with someone who works with Git 💻&lt;/p&gt;

&lt;p&gt;Happy hacking! 🚀&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>versioncontrol</category>
      <category>productivity</category>
    </item>
    <item>
      <title>My Journey into Tech: From Curiosity to Code</title>
      <dc:creator>Jayesh Verma</dc:creator>
      <pubDate>Mon, 02 Jun 2025 15:16:48 +0000</pubDate>
      <link>https://dev.to/jayesh_verma_9cff177f8fff/my-journey-into-tech-from-curiosity-to-code-54pg</link>
      <guid>https://dev.to/jayesh_verma_9cff177f8fff/my-journey-into-tech-from-curiosity-to-code-54pg</guid>
      <description>&lt;h1&gt;
  
  
  My Journey into Tech: From Curiosity to Code 🚀
&lt;/h1&gt;

&lt;p&gt;Hello DEV Community! 👋&lt;/p&gt;

&lt;p&gt;I'm &lt;strong&gt;Jayesh Verma&lt;/strong&gt;, a Computer Science graduate from CKT College Panvel (Batch 2022–2025). This is my very first post on DEV, and I'm super excited to begin sharing and learning with all of you!&lt;/p&gt;




&lt;h2&gt;
  
  
  🌱 How It All Started
&lt;/h2&gt;

&lt;p&gt;My journey into tech began with curiosity – I was always fascinated by how websites, apps, and software work behind the scenes. That led me to explore programming languages like &lt;strong&gt;C, C++, Java, Python&lt;/strong&gt;, and &lt;strong&gt;JavaScript&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;As I dived deeper, I discovered a passion for &lt;strong&gt;web development&lt;/strong&gt; and &lt;strong&gt;cybersecurity&lt;/strong&gt; – fields that keep evolving and challenging me every day.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎓 My Learning So Far
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;✅ Strong foundation in &lt;strong&gt;HTML, CSS, JavaScript&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;📚 Currently exploring &lt;strong&gt;MERN stack&lt;/strong&gt; and &lt;strong&gt;full-stack development&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;📜 Earned certifications in &lt;strong&gt;AI, cybersecurity&lt;/strong&gt;, and &lt;strong&gt;productivity tools&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;💡 Participated in tech fests, coding competitions, and hackathons&lt;/li&gt;
&lt;li&gt;🎯 CGPA: 9.73 and still pushing forward!&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💡 Areas of Interest
&lt;/h2&gt;

&lt;p&gt;I’m especially interested in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🌐 &lt;strong&gt;Full-Stack Web Development&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;🔐 &lt;strong&gt;Cybersecurity&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;⚙️ &lt;strong&gt;MERN Stack (MongoDB, Express.js, React, Node.js)&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;🤖 &lt;strong&gt;Artificial Intelligence&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;☁️ &lt;strong&gt;Cloud fundamentals&lt;/strong&gt; (getting started here too!)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every day I’m trying to deepen my understanding and build meaningful projects to apply what I learn.&lt;/p&gt;




&lt;h2&gt;
  
  
  💬 Let’s Connect!
&lt;/h2&gt;

&lt;p&gt;If you’re also starting your tech journey, into  full-stack dev, cybersecurity or just want to say hi — feel free to drop a comment! 👇&lt;/p&gt;

&lt;p&gt;Thanks for reading and being part of this amazing community! 🙌&lt;/p&gt;




&lt;p&gt;&lt;em&gt;#beginners #webdev #programming #devjourney&lt;/em&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>programming</category>
      <category>devjourney</category>
    </item>
  </channel>
</rss>
