By mistake, I've recently "deleted" a branch into a clone that I've forked on GitHub. After noticing this error, I've tried to "reactivate" this branch, but I've realized that this action seemed to create a "pull request" into the upstream repository. Therefore, I've decided to definitely delete this branch into my clone, in order to not affect the upstream source in any way.
After this "misadventure", I have some questions about management of branches into a GitHub clone:
- can I safely delete a branch in my clone (especially if this branch seems no longer active in upstream)?
- is it possible to fully synchronize all the branches (default, active and stale branches) from upstream into my clone?
- is it better to keep only a unique master branch into my clone (in particular if my goal is mainly to stay updated from upstream)?
- can I create a specific branch into my clone without affecting upstream in any way (as automated pull request)?