In most cases, if you repeat a course and earn a better grade, your GPA will automatically update to remove your first attempt from the calculation. Your transcript will still show all your attempts and the grades you received each time you took the course, but you'll receive credit for only one.