Hacker News new | past | comments | ask | show | jobs | submit login

Here's a shell script for moving files in git between repos, preserving the history, and following that history through the file being renamed:

     git-move src/afile.c src/bfile.c src/cfile.c ../destination/repo
https://gist.github.com/mnemnion/87b51dc8f15af3242204472391f...



simpler than i expected. what was your original use case?


Same as the ongoing use case: breaking submodules of a project out into its own namespace, while preserving the edit history.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: