Utility function
Would you accept a PR which adds a function that brings a local repo inline with the remote? It checks all local branches and does the following:
- remove local branches if they are fully merged into
origin/master - display the name of the branch if it is behind its counterpart at
origin - remove the local branch if it diverged from
originafter asking twice for user consent
In the near future, I would like to prioritize work on improving the credentials functionality over adding new features. Therefore, I feel a little hesitant to add and maintain that utility function. What is the use case?
For the time being I wrote a new_branch() function and added it our checklist package.
I noticed that novice git users keep a lot of obsolete branches (fully merged with the main branch on GiHub) on their machine because they don't know how to get ride of them. They often start a new branch from an outdated main branch or from a non-main branch.
If you are interested, I'm happy to send a PR that creates new_branch(), clean_git() and is_workdir_clearn(). I'm willing to maintain them too.