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.

64 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
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. #
  27. # PR to existed branch
  28. 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**
  29. git push origin addons-yelizariev-9.0-some-feature
  30. # Final PR to target repo
  31. # example for addons-yelizariev
  32. cd /path/to/addons-yelizariev
  33. # add remote if it doesn't exist yet
  34. git remote add addons-dev https://github.com/yelizariev/addons-dev.git
  35. # fetch remote
  36. git fetch addons-dev
  37. # create branch
  38. git checkout -b 9.0-some-feature addons-dev/addons-yelizariev-9.0-some-feature
  39. # push to your fork of target repo
  40. git push origin 9.0-some-feature
  41. # create PR to target repo