Add history management for files with git