I recently joined a project where we have a master branch but also a lot of stale branches that haven't been used in years. I have to clean the repo so that ideally only the master branch is left in the end.
Now I have seen that most branches are only "XXX commits behind master" (and no commits ahead of master). Does this mean that these branches are like screenshots of the master branch at that specific point back in time? So their contents, if not explicitly deleted by the commits to the master branch, should be in the master as well, right?
For context: I am not trying to update the old branches, I am only trying to figure out if I can delete them, which is the case if their contents are included in master or have been explicitly deleted in master.