How do you copy a file or a directory with git, preserving revision history? I can't seem to find a way to do it.
What I'd like to do is to split a project into a library and GUI part (now they are mixed in the same project). So I'd like to copy a whole project, and then remove GUI parts from library project, and library parts from GUI project, but preserving the history of every file. It seems trivial undertaking, but I can't find the copy command in git.
So, how do I copy in git?