Automating Git Deployment Folders with Git Path Migrator

Recently, my team faced a common but tedious challenge: we needed to prepare deployment folders containing only the files changed in a specific sprint. Doing this manually meant: ❌ Scouring Git logs for paths. ❌ Manually recreating complex directory structures (a/b/c/...). ❌ High risk of human error or missing a file. I realized we were losing valuable development time to "copy-paste" fatigue. So, I built a solution: Git Path Migrator. This Java-based utility takes a raw list of paths (straight from git status) and handles the rest. It doesn't just copy files; it mirrors the entire source hierarchy into the target folder automatically. Key features I implemented to help the team: ✅ Prefix Stripping: It understands Git output (modified:, M:, new file:) and cleans it on the fly. ✅ Recursive Copying: If a whole module folder changed, it migrates the entire tree. ✅ Safety Checks: It warns if the target folder isn't empty to prevent version mixing. ✅ Real-time Logging: A "Matrix-style" console to track exactly what was moved. What started as a way to save my own time is now a tool that can help the whole team move faster and with more confidence. 💻✨ Check out the project on GitHub: 👉 https://lnkd.in/gCCn-v7M #Java #SoftwareEngineering #Automation #Git #DeveloperTools #Efficiency #Teamwork #GitHub

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories