Skip to content

Accessing development and other branches

Jonathan Hudson edited this page Jun 5, 2022 · 2 revisions

Unmaintained Article Please check the manual for more up-to-date information.

The installation instructions for mwptools advise to perform a shallow clone of the mwptools repository. This has a number of advantages for the non-developer:

  • Minimum bandwidth option
  • User is always on the (stable) master branch.

However, from time to time it can be useful to be able to build developement or another experiment branch.

In order to updates one's local repository to see any other branches, the follow terminal commands are required ($ is the terminal prompt, don't type it!):

$ git remote set-branches origin '*'
$ git fetch -v

Then:

$ git branch # lists available and active branches (*)
  development
* master

And one can checkout development

$ git checkout development
Switched to branch 'development'
Your branch is up to date with 'origin/development'.
Clone this wiki locally