Scripts to aid the development process

We’ve create a number of scripts that aid our development process for details see the readme for the project:

https://github.com/mdinsmore/dev-scripts

set-branches

This script sets the branch for each of the apps used by the project.

The branch configuration file

The script requires a file called requirements/branch.txt. This should contain a line for each app used in the project using the format:

app|branch

E.g. for a project which requires the block app to be on the delete-image branch and the base, compose, login, and mail apps on master you’d set up like this:

base|master
block|delete-image
compose|master
login|master
mail|master

Run the command

To use the set-branches script just change to the project directory and type:

set-branches

untracked-branches

Deletes the reference branches that are not on the remote repository and then optionally prompts to delete the local ones.

  1. To delete untracked remotes on your local machine, see Git Branches

  2. To Delete Merged Branches on GitLab, see GitLab Branches