GIT Help - Y

GIT Command

Probuse Admin

  1. Create a fork of the original repository (in GitHub)
  2. Clone the fork to local
    1. git clone https://github.com/client_bracnh_name/odoo.git fork-odoo
  3. Specify a new remote upstream repository that will be synced with the fork, and verify it.
    1. git remote add upstream https://github.com/odoo/odoo.git
    2. git remote -v
  4. Commit changes as normal
    1. git add --all
    2. git commit -m "xxxx"
    3. git push origin
  5. Syncing a fork
    1. Fetch the branches and their respective commits from the upstream repository. Commits to ‘master’ will be stored in a local branch, ‘upstream/master’
      1. git fetch upstream
    2. Check out your fork's local branch
      1. git checkout 8.0
    3. Merge the changes from ‘upstream/8.0’ into your local ‘8.0’ branch. This brings your fork's 8.0 branch into sync with the upstream repository, without losing your local changes
      1. git merge upstream/8.0
  6. Go to your fork repository in GitHub and create a pull request