kkarpieszuk / featureup

Synchronise git feature branch with develop and all descending branches.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  • copy featureup file from this repository to any location in your $PATH (eg /usr/bin/local/featureup)
  • make it executable chmod +x /usr/bin/local/featureup

Usage

Suppose from develop branch you created feature branch called our-new-feature. Then from our-new-feature developers created their sub-branches and created PR for them (they can be drafts)

Then:

  • navigate to your repository directory
  • run featureup our-new-feature
  • that's all

How it works

The command featureup our-new-feature will:

  • update your local develop to be in sync with develop in remote repository
  • update your local our-new-feature branch to be in sync with remote
  • merge develop in our-new-feature and push
  • get the list of all sub-branches
  • for each sub-branch, it will merge our-new-feature into them and push

If any error happen (command execution fails, merge impossible due to conflicts) script will terminate with code 1 and print the info about the termination reason.

Requirements

  • git and gh (GitHub CLI) must be installed (although the script will check this as well before running)

About

Synchronise git feature branch with develop and all descending branches.

License:MIT License


Languages

Language:Shell 100.0%