Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. mkdir projTotal
  2. cd projTotal
  3. git init
  4. git commit --allow-empty -m "Initial commit"
  5.  
  6. #add any number of projects
  7. git remote add -f proj git@proj.git
  8. git merge --allow-unrelated-histories proj/master
  9. mkdir subProj
  10. ls -a -1 > proj.files
  11. vim proj.files
  12. #remove manually subProj, proj.files, .git, ., ..
  13. for f in $(cat proj.files); do git mv $f subProj; done
  14. rm proj.files
  15. git commit -a -m "Move proj files to subdir"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement