Skip to content

Instantly share code, notes, and snippets.

@jimmynguyc
Last active August 29, 2015 13:57
Show Gist options
  • Save jimmynguyc/9543666 to your computer and use it in GitHub Desktop.
Save jimmynguyc/9543666 to your computer and use it in GitHub Desktop.
Sample project readme

Contributing

Setup

Clone the repo and setup Apache / Nginx:

$ cd ~/Sites
$ git clone git@github.com:project-github-account/Project.git

Setup Apache / Nginx

Developing

  • Create feature branches, issue pull requests to merge them.
  • Rebase master into your feature branches often.

Create feature branch

$ git pull --rebase origin master
$ git checkout -b my-new-feature
...work work work

Issue pull request

$ git co master
$ git pull --rebase origin master   (update master with latest)
$ git checkout my-new-feature
$ git rebase master                 (rebase master onto your feature branch)
(resolve conflicts if any)

$ git push origin my-new-feature
(create a pull request for your branch)

Proper pull requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment