GitHub Updating

How exactly do you update certain lines that haven’t been modified with github?
Because I’ve just been editing line per line before but now there’s a big update for a page and i’ve added a lot of custom lines and don’t want to edit 30+ files.
I heard there was a way to do this just couldn’t find out.

I’m sure I saw it somewhere, anyone?