Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility function #429

Open
ThierryO opened this issue Jun 30, 2020 · 2 comments
Open

Utility function #429

ThierryO opened this issue Jun 30, 2020 · 2 comments

Comments

@ThierryO
Copy link
Member

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:

  1. remove local branches if they are fully merged into origin/master
  2. display the name of the branch if it is behind its counterpart at origin
  3. remove the local branch if it diverged from origin after asking twice for user consent
@stewid
Copy link
Member

stewid commented Jul 2, 2020

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?

@ThierryO
Copy link
Member Author

ThierryO commented Sep 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants