Add a feature to do git clone with reference