GIT Help - Y
GIT Command
Probuse Admin
- Create a fork of the original repository (in GitHub)
- Clone the fork to local
- git clone https://github.com/client_bracnh_name/odoo.git fork-odoo
- Specify a new remote upstream repository that will be synced with the fork, and verify it.
- git remote add upstream https://github.com/odoo/odoo.git
- git remote -v
- Commit changes as normal
- git add --all
- git commit -m "xxxx"
- git push origin
- Syncing a fork
- Fetch the branches and their respective commits from the upstream repository. Commits to ‘master’ will be stored in a local branch, ‘upstream/master’
- git fetch upstream
- Check out your fork's local branch
- git checkout 8.0
- 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
- git merge upstream/8.0
- Fetch the branches and their respective commits from the upstream repository. Commits to ‘master’ will be stored in a local branch, ‘upstream/master’
- Go to your fork repository in GitHub and create a pull request