Last active
August 2, 2019 18:48
-
-
Save shafi-codez/581abcbc27e368cb8710a123c308e8a7 to your computer and use it in GitHub Desktop.
Migration from our repo to new repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EXISTING_REPO_NAME=plugins_extractor | |
git clone ssh://<token>@git-codecommit.us-west-2.amazonaws.com/v1/repos/${EXISTING_REPO_NAME} | |
cd ${EXISTING_REPO_NAME} | |
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done | |
git remote -v | |
git remote rm origin | |
# ORG_URL = "soma.salesforce" | |
# Ensure this new repo is created. | |
git remote add origin git@git.${ORG_URL}.com:SDS-TVM/${EXISTING_REPO_NAME}.git | |
git remote -v | |
# Fetch existing files from new repo ex : readme | |
git fetch --all | |
# Push all commits to master | |
git push --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment