Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Wiki
  • Git Branches

Git Branches · Changes

Page history
Updated Git Branches (markdown) authored Jun 21, 2018 by Jérémie Bresson's avatar Jérémie Bresson
Show whitespace changes
Inline Side-by-side
Git-Branches.md
View page @ e2fc1873
......@@ -37,12 +37,32 @@ Merge commit is kept in the history in order to facilitate merge conflict resolu
When we drop the support for `3.0.x`, we'll merge `3.1.0` back into `master`.
## Solving conflicts during merge
## How-to: create merge commit.
Be careful of the merge direction.
Example for `master` -> `3.1.x` branch:
```
git fetch
git checkout origin/3.1.x -B 3.1.x
git merge origin/master
```
Review the merge commit.
You can run some checks locally `mvn clean verify`, `bin/utils/ensure-up-to-date`...
```
git push
```
### Solving conflicts during merge
> TODO, add useful git command, inspired by the discussion in https://github.com/OpenAPITools/openapi-generator/issues/245
## Necessary steps when a new working branch is created
* Edit the [`if` condition in the `.travis.yml` file](https://github.com/OpenAPITools/openapi-generator/blob/4664c07034fac99cfb6354fae6301d85f4f96810/.travis.yml#L115) to allow the working branches to do a `mvn deploy` of the artifacts
* Set it as protected branch in the GitHub configs
* Update readme (branch list, badges…)
Clone repository
  • API client generator HOWTO
  • Building your own Templates
  • Customizing client code generation
  • FAQ
  • Git Branches
  • Home
  • How to add a generator for a new language or framework
  • Integration Tests
  • Migration Guide
  • Mustache Template Variables
  • Pull Request Checklist
  • Release Checklist
  • Samples folder
  • Server stub generator HOWTO
  • Vendor Extensions
View All Pages