FollowTheProcess/pytoil

[FEATURE]: Easily synchronise local projects

FollowTheProcess opened this issue · 1 comments

How would this feature be useful?

Often something I find myself doing is going through all my local projects and doing git pull to pull down any changes I may have made on GitHub or on another machine.

It would be good if pytoil could automate this workflow!

Describe the solution you'd like

Some command like pytoil sync that took a list of repos as an argument and had a pytoil sync --all option to do all of them which looped through every project I had locally and did the following:

  • Check if I'm on the default branch (if not, skip this project completely to be safe)
  • Check if there are uncommitted changes (again, if not, skip completely)
  • If both of the above are handled, do git pull to synchronise changes from remotes.

Describe alternatives you've considered

Doing it manually, or a separate script. I'd rather have it as part of pytoil

Closing as out of scope for this project