The Battle of Gettysburg was an important influence on the American Civil War and on the town of Gettysburg , Pennsylvania , where only 2,400 people lived . The battle also had a major impact on the town of Gettysburg , Pennsylvania , which numbered only 2,400 inhabitants .