Skip to content

Instantly share code, notes, and snippets.

@weshayutin
Created August 8, 2016 18:53
Show Gist options
  • Save weshayutin/3d32b52ed998fee319bfa40a468135a6 to your computer and use it in GitHub Desktop.
Save weshayutin/3d32b52ed998fee319bfa40a468135a6 to your computer and use it in GitHub Desktop.
http://zzamboni.org/new/blog/moving-files-between-git-repositories-preserving-history/
http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/
10186 git clone https://github.com/openstack/tripleo-quickstart.git /tmp/tmp-repo
10187* history | grep filter-branch
10190* git remote remove origin
10191* git filter-branch --subdirectory roles/tripleo/overcloud -- --all
10192* git filter-branch --subdirectory-filter roles/tripleo/overcloud -- --all
10194 git remote add tmp-repo file:///tmp/tmp-repo
10195 git pull tmp-repo master
10197 git log
10199 ls defaults
10200 ls meta
10201 git remote
10203 git remote rm tmp-repo
10204 git remote -vv
10205 git status
10206 git add .
10207 git commit -m "move native quickstart roles/tripleo/overcloud to new repo"
10208 git remote add origin https://github.com/redhat-openstack/ansible-role-quickstart-overcloud.git
10209 git push -u origin master
10210 ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment