Swift git handover with mob

mob Logo

Swift git handover with ‘mob’.

How to install

curl -sL install.mob.sh | sh

You can also install it on macOS via homebrew:

brew install remotemobprogramming/brew/mob

How to use

You only need three commands: mob start, mob next, and mob done. Switch to a separate branch with mob start and handover to the next person with mob next. Continue with mob start and handover to the next person with mob next. Continue with mob start and handover to the next person with mob next. Continue with mob start and handover to the next person with mob next. … When you’re done, get your changes into the staging area of the master branch with mob done and commit them.

asciicast

USAGE
mob start [<minutes> [share]] [--include-uncommitted-changes]	# start mob session
mob next [-s|--stay] 	# handover to next person
mob done 		# finish mob session
mob reset 		# reset any unfinished mob session (local & remote)
mob status 		# show status of mob session
mob share 		# start screen sharing in Zoom (requires Zoom configuration)
mob timer <minutes>	# start a <minutes> timer
mob config 		# print configuration
mob help 		# print usage
mob version 		# print version number

EXAMPLES
mob start 10 		# start 10 min session
mob start 10 share 	# start 10 min session with zoom screenshare
mob next --stay		# handover code and stay on mob session branch
mob done 		# get changes back to master branch

How does it work

Zoom Screen Share Integration

The mob share feature uses the zoom keyboard shortcut “Start/Stop Screen Sharing”. This only works if you

More tips on setting up Zoom for effective screen sharing.

More on Installation

Linux Timer

To get the timer to play “mob next” on your speakers when your time is up, you’ll need an installed speech engine. Install that on Debian/Ubuntu/Mint as follows:

sudo apt-get install espeak-ng-espeak mbrola-us1

Create a little script in your $PATH called say with the following content:

#!/bin/sh
espeak -v us-mbrola-1 "$@"

Windows Timer

To get the timer to play “mob next” on your speakers when your time is up, you’ll need an installed speech engine. We recommand that you install eSpeak NG for Windows through the MSI as it is open source, platform independent and produces quiet a good quality.

Also please note that the speech support will only work in a MINGW environment, such as git-bash as the timer functionality needs a *NIX shell.

Create a little script in $USERPROFILE/bin called say with the following content:

#!/bin/sh
# eSpeak does not set any path, so we specify its installation directory instead
"$PROGRAMFILES/eSpeak NG/espeak-ng" "$@"

How to configure

Show your current configuration with mob config:

MOB_BASE_BRANCH=master
MOB_WIP_BRANCH=mob-session
MOB_REMOTE_NAME=origin
MOB_WIP_COMMIT_MESSAGE=mob next [ci-skip]
MOB_VOICE_COMMAND=say
MOB_NEXT_STAY=false
MOB_START_INCLUDE_UNCOMMITTED_CHANGES=false
MOB_DEBUG=false

Override default value permanently via environment variables:

export MOB_DEBUG=true

Override default value just for a single call:

MOB_DEBUG=true mob next

How to contribute

Open an issue or create a pull request.

Credits

Developed and maintained by Dr. Simon Harrer.

Contributions and testing by Jochen Christ, Martin Huber, Franziska Dessart, Nikolas Hermann and Christoph Welcz. Thank you!

Logo designed by Sonja Scheungrab.