title: Bitbucket pipeline - possibility to merge one branch to another
body: <p>I have a repository with two branches: <strong>master</strong> and <strong>Dev</strong> and I want to configure that pipline in such a way that when I push code to <strong>Dev</strong> branch and code build was successfull, the <strong>Dev</strong> was merged to <strong>master</strong>. Unfortunatly I can't find any information about merge in bitbucket piplines <a href="https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_branchesbranches(optional)" rel="noreferrer">docs</a>.</p>
  
  <p>That's my yml file:</p>
  
  <pre><code>pipelines:
    branches:
      Dev:
        - step:
            script:
              - ant deployCodeCheckOnly -Dsf.username=$SF_USERNAME -Dsf.password=$SF_PASSWORD
  </code></pre>
  
  <p>Could somebody help me with that case? If it possible?</p>
  
  <p>--Edit</p>
  
  <p>I try to change script as sugest:</p>
  
  <pre><code>pipelines:
    branches:
      Dev:
        - step:
            script:
              - ant deployCodeCheckOnly -Dsf.username=$SF_USERNAME -Dsf.password=$SF_PASSWORD
              - git remote -v
              - git fetch
              - git checkout master
              - git merge Dev
              - git push -v --tags origin master:master
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>git remote -v
  + git remote -v
  origin  git@bitbucket.org:repository/project.git (fetch)
  origin  git@bitbucket.org:repository/project.git (push)
  
  git fetch origin
  + git fetch origin
  Warning: Permanently added the RSA host key for IP address ..... to the list of known hosts.
  </code></pre>
  
  <p>And error:</p>
  
  <pre><code>+ git checkout master
  error: pathspec 'master' did not match any file(s) known to git.
  </code></pre>
  
  <p>--Solution</p>
  
  <pre><code>  Dev:
         - step:
             script:
              - ant deployCodeCheckOnly -Dsf.username=$SF_USERNAME Dsf.password=$SF_PASSWORD
               - git fetch
               - git checkout -b master
               - git merge Dev
               - git push -v --tags origin master:master
  </code></pre>