support git resources download and checkout special commit.