In the FreeBSD ports tree I restored the previously removed directory
math/dynare:
1. git checkout 3fb72e318f7be~1 -- math/dynare
2. git mv math/dynare science/dynare
3. rm -rf science/dynare && cp -r science/dynare.new science/dynare
4. git add science/dynare
5. git commit science/dynare
After this 'git log science/dynare' only shows my last commit, and not
the previous history of 'math/dynare' that existed before its removal.
The above sequence of commands should have kept and migrated the history
of math/dynare to science/dynare, but it didn't.
The corresponding subversion command sequence keeps history.
Yuri