Skip to content

Instantly share code, notes, and snippets.

@shafi-codez
Last active August 2, 2019 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shafi-codez/581abcbc27e368cb8710a123c308e8a7 to your computer and use it in GitHub Desktop.
Save shafi-codez/581abcbc27e368cb8710a123c308e8a7 to your computer and use it in GitHub Desktop.
Migration from our repo to new repo
# 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