-
Notifications
You must be signed in to change notification settings - Fork 197
Alternative without using fork cloning (cloning original repository)
Gonzalo Ruzafa edited this page Aug 12, 2015
·
1 revision
Another alternative is not cloning the fork, we'll work with the clon of the original repository.
- If it does not exist, we'll do a fork of the original repo to our user or organization (in our case [adhoc-dev] (https://github.com/adhoc-dev))
- We add to our clon of the original repo the remote of our clone, it would be
$ git remote add [remote_name] [url]
. For ex.$ git remote add adhoc-dev git@github.com:adhoc-dev/odoo-infrastructure.git
- We perform pull and checkouts as usual
$ git checkout -b [branch_name]
. For ex$ git checkout -b 8.0_sample_fix
- We perform the code modifications
- We make a commit, for example:
$ git commit -am 'FIX partner onchange'
- When we want to make a Push, it is likely tha we will face an error (for not having the writing rights in the original repo), that's why we do
$ git push [remote_name] [branch_name]
. For example$ git push adhoc-dev 8.0_sample_fix
Odoo Argentina: Documentación, foro y mucho más en https://www.odooargentina.com
Contribuidores Principales: ADHOC SA