Skip to content

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.

  1. 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))
  2. 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
  3. We perform pull and checkouts as usual $ git checkout -b [branch_name]. For ex $ git checkout -b 8.0_sample_fix
  4. We perform the code modifications
  5. We make a commit, for example: $ git commit -am 'FIX partner onchange'
  6. 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