-
Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory git clone https://github.com/<your-username>/front.phone # Navigate to the newly cloned directory cd front.phone # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/vtex/front.phone
-
If you cloned a while ago, get the latest changes from upstream:
git checkout master git pull upstream master
-
Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:
git checkout -b <topic-branch-name>
-
Make sure to update, or add to the tests when appropriate. Patches and features will not be accepted without tests. Run
npm test
to check that all tests pass after you've made changes. -
Commit your changes in logical chunks. Please adhere to these git commit message guidelines. Use Git's interactive rebase feature to tidy up your commits before making them public.
-
Locally merge (or rebase) the upstream development branch into your topic branch:
git pull [--rebase] upstream master
-
Push your topic branch up to your fork:
git push origin <topic-branch-name>
-
Open a Pull Request with a clear title and description.
-
If you are asked to amend your changes before they can be merged in, please use
git commit --amend
(or rebasing for multi-commit Pull Requests) and force push to your remote feature branch. You may also be asked to squash commits.
IMPORTANT: By submitting a patch, you agree to license your work under the same license as that used by the project.