I'm writing some automatic scripts using Bitbucket Server API. I have a lot of actions here, with pull request creation, etc.
For some reason I need to synchronize some branch with remote and merge with other branches(git merge).
Is it possible to do something like:
git checkout my_branch
git pull
git merge another_branch
I can do this staff via direct shell calls, but it requires branch cloning, etc.
Any ideas?