Create a patch from a pull request
16 Oct 2017 | bitbucket gitBitbucket: create a git patch from a pull request
To create a patch from a pull request, so that the branch can be deleted, and the changes can be merged later if needed
curl -u user:password https://bitbucket.org/api/2.0/repositories/{user}/{repo}/pullrequests/{pull_no}/patch -L -o name.patch
You can then link the .patch
file in a new pivotal ticket for example.
To apply the patch later, simply use
git apply name.patch
Comments