Swift git handover with mob

mob Logo

Test Workflow Contributors Downloads Downloads of latest Version

Swift git handover with ‘mob’.

What people say about ‘mob’

“Mob has allowed us to run fast-paced, engaging, and effective sessions by enabling sub-10-second handover times and otherwise getting out of the way. A simple but great tool!”

Jeff Langr, developer

“I love it, it is a quantum leap in our collaboration.”

— Vasiliy Sivovolov, Senior Software Engineer

“What a great tool to organise remote working.”

Jennifer Gommans, IT Consultant

How to install

curl -sL install.mob.sh | sh

If you are under Windows, you can use git bash to install mob.

You can also install it on macOS via homebrew:

brew install remotemobprogramming/brew/mob

If you want to update to the latest version using Homebrew

brew upgrade 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.


mob start [<minutes>] [--include-uncommitted-changes|-i] [--branch|-b <branch>] # start mob session in wip branch
mob next [--stay|-s] [--return-to-base-branch|-r] [--message|-m <commit-message>] # handover to next person and switch back to base branch
mob done 			# finish mob session by squashing all changes in wip branch to index in base branch
mob reset [--branch|-b <branch>]# removes local and remote wip branch
mob status 			# show status
mob timer <minutes>		# start a <minutes> timer
mob config 			# print configuration
mob moo 			# moo!
mob version 			# print version number
mob help 			# print usage

Add --debug to any option to enable verbose logging

mob start 10 			# start 10 min session in wip branch 'mob-session'
mob start --branch green 	# start session in wip branch 'mob/<base-branch>/green'
mob next --stay			# handover code and stay on wip branch
mob done 			# get changes back to base branch
mob moo 			# be amazed

How does it work

Screen Share Integration

Mob no longer supports starting the screen share on ‘mob start’. Why? At first, this feature sounds awesome. In practice, however, that feature wasn’t much help. It only simulated keying in a keyboard shortcut and had several shortcomings:

  1. it needed to be configured correctly,
  2. it only toggled screen share, so one had to keep in mind whether one was already screen sharing or not, and
  3. it solely supported Zoom on macOS and Linux.

The feature promised too much, and delivered very little of it.

Still, that keyboard shortcut to toggle screen sharing in Zoom is still very helpful. Just press the hotkey yourself. It is, however, essential to make the shortcut globally available (Zoom > Preferences > Keyboard Shortcuts). Otherwise, the hotkey won’t work. More tips on setting up Zoom for effective screen sharing.

More on Installation


On Windows, if you use Scoop then just download the mob.json file, open a PowerShell terminal in that directory and:

scoop install mob

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:

espeak -v us-mbrola-1 "$@"

How to configure

Show your current configuration with mob config:

MOB_WIP_COMMIT_MESSAGE=mob next [ci-skip]
MOB_NOTIFY_COMMAND=/usr/bin/osascript -e 'display notification "%s"'

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

Propose your change in an issue or directly create a pull request with your improvements.

git version # >= 2.17
go version # >= 1.15

go build # builds 'mob'

go test # runs all tests
go test -run TestDetermineBranches # runs the single test named 'TestDetermineBranches'

# run tests and show test coverage in browser
go test -coverprofile=cover.out && go tool cover -html=cover.out

Design Concepts

Who is using ‘mob’?


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.