Here are the guidelines:
If you find a bug in the source code or a mistake in the documentation, you can help by submitting an issue to this GitHub Repository. Even better if you can submit a Pull Request with a fix.
Please try to limit line length under 80 symbols.
Before you submit your pull request consider the following guidelines:
-
Make your changes in a new git branch (prefix with type – feature/bug/enhancement):
git checkout -b feature/descriptive-concise-name master
-
Commit your changes using a title and descriptive commit message (if appreciable).
-
Push your branch to GitHub:
git push origin feature/descriptive-concise-name master
-
In GitHub, send a pull request to
photoswipe-rails:master
. This should be done after first commit so changes can be tracked more easily and feedback/comments may be received faster. -
If changes has to be made then:
-
Make the required updates.
-
Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
git rebase master -i git push origin feature/descriptive-concise-name -f
-
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
-
Delete the remote branch on GitHub either through the GitHub web UI or your shell as follows:
git push origin --delete feature/descriptive-concise-name
-
Check out the master branch:
git checkout master -f
-
Delete the local branch:
git branch -D feature/descriptive-concise-name
-
Update your master with the latest upstream version:
git pull --ff upstream master