Add git upstream function.