If you are using
git
to maintain your copy of WeBWorK, then your modifications should be retained when you do an update via git pull
. If there is a conflict, you will be warned about that and will need to resolve the conflict by editing the file (it will include both your version and the new version of the conflicting lines, and you get to choose which to keep).