Implement copy functions for Branch, Commit, and File