replace all occurrences of mainline branch name with new branch name in config file