change git function to latest