merge develop to feature branch code example
Example 1: git pull everything from development branch to feature branch
#!/bin/bash
git checkout develop
git pull
git checkout feature/$1
git merge develop
git push
Example 2: merge develop to branch
git checkout develop
git pull
git checkout branch-x
git rebase develop