I need 20 branches, each branched from a single main feature branch. These branches will be used to generate pull requests (BitBucket) repeatedly as work progresses. So every now and again, I want to checkout a PR branch, then checkout again from the feature branch only those files that were originally checked out from the feature branch without having to remember which files those were.
Currently, I maintain a script that keeps track of which files to associate to which PR branch and when the PR branch name is passed, it checks out the files, adds, commits, then pushes. What is an easier way to "refresh" the PR branches?