Skip to content

Instantly share code, notes, and snippets.

View ziazon's full-sized avatar
🚂
Chugging along

Zia Zon ziazon

🚂
Chugging along
  • Openbay
  • Boston MA
View GitHub Profile
@ziazon
ziazon / merge.sh
Created March 24, 2022 14:48
Merge multiple repos into single monorepo maintaining git history
#!/bin/bash
set -euo pipefail
NEW_REPO_DIR=${NEW_REPO_DIR:-'new-repo'}
BASE_CODE_DIR=${BASE_CODE_DIR:-'apps'}
# expected starting structue:
# merge.sh
# repo1
# repo2
# repo3