Menu

Tree [6f4fbd] main /
 History

HTTPS access


File Date Author Commit
 .gitignore 3 days ago Pat Trainor Pat Trainor [abea6e] initial commit
 README.md 3 days ago Pat Trainor Pat Trainor [abea6e] initial commit
 mvRepos.cfg 3 days ago Pat Trainor Pat Trainor [6f4fbd] next commit
 mvRepos.py 3 days ago Pat Trainor Pat Trainor [abea6e] initial commit

Read Me

mvRepos

Consolidate git project folders into one destination root.

Requirements

  • Python 3.11+ (uses tomllib)
  • Linux or Windows

Quick start

  1. Edit mvRepos.cfg (set searchRootDirsWin and/or searchRootDirsLinux)
  2. Dry run:
  3. python mvRepos.py --dry-run
  4. Real run:
  5. python mvRepos.py

Key behaviors

  • Transactional move: copy -> verify -> rename -> delete
  • Includes .git in verification by default
  • Nested repos are treated as an error (parent skipped)
  • Logs to STDOUT and mvRepos.log in the current working directory

Common overrides

  • Override scan roots:
  • python mvRepos.py --f "D:/projects" "E:/repos" --d "D:/ConsolidatedProjects"
  • Follow symlinks:
  • python mvRepos.py --follow-symlinks
  • Resume:
  • python mvRepos.py --resume