Guest User

git move

a guest
Oct 16th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. git filter-branch --subdirectory-filter <git origin_repository directory> -- --all
  2. mkdir POCs/
  3. git mv * POCs/
  4. git commit -m "colleted the data to move"
  5.  
  6. git clone <git destination_repository_url>
  7. cd <git destination_repository_directory>
  8. git remote add origin_repository_branch <git origin_repository directory>
  9. git pull origin_repository_branch master --allow-unrelated-histories
  10. git remote rm origin_repository_branch
Advertisement
Add Comment
Please, Sign In to add comment