You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. # addons-dev
  2. Addons Forge
  3. # Initialization
  4. 1. Fork this repo
  5. 2. Clone to your machine:
  6. git clone git@github.com:USERNAME/addons-dev.git
  7. 3. Add remotes
  8. cd addons-dev
  9. git remote add upstream git@github.com:yelizariev/addons-dev.git
  10. git remote add addons-yelizariev https://github.com/yelizariev/addons-yelizariev.git
  11. git remote add pos-addons https://github.com/yelizariev/pos-addons.git
  12. git remote add mail-addons https://github.com/yelizariev/mail-addons.git
  13. git remote add access-addons https://github.com/yelizariev/access-addons.git
  14. git remote add website-addons https://github.com/yelizariev/website-addons.git
  15. git remote add l10n-addons https://github.com/yelizariev/l10n-addons.git
  16. # Create new branch
  17. *(push access is needed)*
  18. # specify target repo and branch:
  19. export REPO=addons-yelizariev BRANCH=9.0 FEATURE=some-feature
  20. # fetch remote
  21. git fetch ${REPO}
  22. # create new branch
  23. git checkout -b ${REPO}-${BRANCH}-${FEATURE} ${REPO}/${BRANCH}
  24. # push to upstream
  25. git push upstream ${REPO}-${BRANCH}-${FEATURE}
  26. # PR to existed branch
  27. If branch (e.g. *addons-yelizariev-9.0-some-feature*) already exists in **addons-dev**, send commits to your fork first and then create PR to **addons-dev**
  28. git push origin addons-yelizariev-9.0-some-feature
  29. # Final PR to target repo
  30. # example for addons-yelizariev
  31. cd /path/to/addons-yelizariev
  32. # add remote if it doesn't exist yet
  33. git remote add addons-dev https://github.com/yelizariev/addons-dev.git
  34. # fetch remote
  35. git fetch addons-dev
  36. # create branch
  37. git checkout -b 9.0-some-feature addons-dev/addons-yelizariev-9.0-some-feature
  38. # push to your fork of target repo
  39. git push origin 9.0-some-feature
  40. # create PR to target repo