remotemobprogramming / mob

Tool for smooth git handover.
https://mob.sh
MIT License
1.66k stars 147 forks source link

mob clean should be modified to correctly update local branch #375

Closed danilo-bc closed 1 year ago

danilo-bc commented 1 year ago

Currently, when someone does "mob done" to finish a session, other users are left with references to origin/mob/<branch_name>, as well as the local mob/<branch_name>.

We just tried running mob clean, which outputs git fetch origin.

The command probably should be git fetch origin --prune, the same way as mob start does. This deletes local references to non-existing branches in origin.

When tested in my mobbing group, the local user tried git branch -a and no longer has reference to origin/mob/<branch_name> in their branch list, which is the expected behavior.