-
Notifications
You must be signed in to change notification settings - Fork 197
More information about forks and pull requests
About maintainig syncronized our fork with the Origin Repository, you can check the official documentation at:
https://help.github.com/articles/syncing-a-fork/
We bring information from the Origin
$ git fetch upstream
We locate ourselves at the branch that we want to syncronize ([target branch])
$ git checkout [target branch]
We make a Merge or a Rebase from the [origin branch] correspondent upstream, tipically with the same name.
$ git merge upstream/[origin branch]
or
$ git rebase upstream/[origin branch]
We locate ourselves at the branch that we want to syncronized ([target branch])
$ git checkout [target branch]
We perform a pull (fetch and merge) directly form the upstream and the origin branch
$ git pull upstream [origin branch]
In a single step we perform the pull from upstream and origin branch to a different target branch (it only works if we are doing a fast-forward) source
$ git fetch upstream [branch origen]:[branch destino]
We update with any of the previous steps. We perform the code modifications. We locate at the branch from wich we want to make a Fix, for example:
$ git checkout 8.0
We create and locate ourselves at a branch for the modification. For ex:
$ git checkout -b 8.0.fix1
We perform a commit, for example:
$ git commit -am 'FIX partner onchange'
We upload this new branch
$ git push origin 8.0.fix1
We update the remote upstream
$ git fetch upstream
We generate a new branch for the modification ([branch mod]) from upstream/[origin branch]
$ git checkout -b [branch mod] upstream/[origin branch]
We perfrom a commit, for example:
$ git commit -am 'FIX partner onchange'
We upload this new branch
$ git push origin [branch mod]
We enter the uploaded branch and we create the pull request
Odoo Argentina: Documentación, foro y mucho más en https://www.odooargentina.com
Contribuidores Principales: ADHOC SA