Few easy steps to moving GIT repository content to another repository preserving history

  1. Fetch all of the remote branches and tags to local index:
git fetch origin
  1. Create a new remote on local repository
git remote add new-origin git@github.com:vfac/newrepo.git
  1. To push all local branches and tags to the new remote named new-origin
git push --all new-origin 
git push --tags new-origin
  1. Let’s make new-origin the default remote
git remote rm origin
  1. Rename new-origin to just origin
git remote rename new-origin origin

Previous Post