-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
git sync-all #83
Comments
I like the idea. The only potential downside to me is if you checked out someone else's feature branch to inspect it on your machine and thus you end up calling git sync on someone else's branch. Syncing isn't a bad thing but you may need to deal with conflicts you don't know what to do with. Could make a cool interface though so that command would have |
As an alternative, could automatically skip any syncs that have conflicts and simply output what branches were successfully synced and which had conflicts. I think I would prefer that. |
The use case I envision for this is somebody on a bigger project who has lots of PRs open. The reviews of them might take a while. In order to prevent buildups of massive deviations between the PRs and master, which lead to painful merge conflicts, the developer wants to sync all of her branches regularly, thereby hopefully doing several smaller merge conflicts instead of one big one. So the goal of this command is to see the syncs through instead of postponing them. From that perspective, I think the most used commands would be "continue" after the conflicts is resolved, with an occasional "skip" if its not my branch. Aborting a sync almost never makes sense, because the only meaningful follow-up action here is to do it again. Skipping all conflicts automatically seems a bad idea in that scenario, and just results in me having to check out the conflicting branches manually and syncing them manually. The whole point of |
Output:
then clear screen and show this
|
Bump on the priority of this. Working with several open branches in the last week, and just a smaller amount of activity on the main code line (from 2 other developers) resulted in extensive need for |
Syncs all local feature branches. Ends up on the same branch as started. Good for keeping the whole workspace up to date.
The text was updated successfully, but these errors were encountered: