Skip to content

Instantly share code, notes, and snippets.

@ccjmne
Last active June 17, 2024 17:14
Show Gist options
  • Save ccjmne/922094b63e29dd4d0cfee447544ea6d8 to your computer and use it in GitHub Desktop.
Save ccjmne/922094b63e29dd4d0cfee447544ea6d8 to your computer and use it in GitHub Desktop.
git-filter-repo
# Move the "creditcardpayment" directory to the root of the repository
# NB: the forward slash at the end of the path is important (preceding the colon),
#see https://github.com/newren/git-filter-repo/issues/125#issuecomment-1016980260
git-filter-repo --path creditcardpayment/ --path-rename=creditcardpayment/:
# Then, probably "git add remote" and push to the new repository
# Clone a single branch in its current state:
git clone git@gitlab.build-unite.unite.eu:procurement-platform/mercateo.git --depth 1 --no-checkout mo --single-branch --branch ITHD-89192-refactor-cc-payment-update-consumers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment