Browse files

Create (#372)

  • Loading branch information...
extragornax authored and remrem committed Mar 25, 2018
1 parent 01c0246 commit ed01c95a328d4ccd83e2ca6ea842f112857219d5
Showing with 46 additions and 0 deletions.
  1. +46 −0
@@ -0,0 +1,46 @@
**All PR are welcome :)**
### In a few steps
1. clone the repo with `git clone --branch dev`
2. create a new branch `git checkout -b branch-name`
3. do your work
4. check your code (see below)
5. `git push`
6. Go to your github repository, and create a pull request from your branch to `dev` main repo.
### Few rules
Always work on a dedicated branch:
git checkout -b branch-name
Before modifying code **and** pushing changes, stay up to date with the `dev` branch:
// Add blogotext to upstream source
git remote add upstream
// Now, you can refresh your fork from the souce
git pull --squash upstream dev
You can found some documentation on [ / syncing-a-fork](
### Check your code
Travis CI will do it for you, but to prevent errors you can test yourself the code:
# Download the tool
curl -OL
# Usage
php phpcs.phar --standard=PSR2 -np --tab-width=4 --encoding=utf-8 .
If you are stuck with a **lot of errors**, use this tool which can refactor the code for you:
# Download the tool
curl -OL
# Usage
php phpcbf.phar --standard=PSR2 -np --tab-width=4 --encoding=utf-8 .
! phpcbf.phar can not work with window (require diff, path...) you can add ` --no-patch`

0 comments on commit ed01c95

Please sign in to comment.