From ab62b9bd6eca91b67c6f4029b0b1e7b81bc65499 Mon Sep 17 00:00:00 2001 From: Bert Chang Date: Tue, 29 Jul 2014 15:29:53 +0800 Subject: [PATCH] Update introduction for contribution --- README.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0d033e3..e30b505 100644 --- a/README.md +++ b/README.md @@ -58,12 +58,32 @@ go run webcam.go You can find more samples at: https://github.com/lazywei/go-opencv/tree/master/samples -## Contribute +## How to contribute - Fork this repo -- Create new feature branch, `git checkout -b your-feature-branch` -- Commit your change and push it to your repo `git commit -m 'new feature'; git push origin your-feature-branch` -- Open pull request! +- Clone the main repo, and add your fork as a remote + +``` +git clone https://github.com/lazywei/go-opencv.git +cd go-opencv +git remote rename origin upstream +git remote add origin https://github.com/your_github_account/go-opencv.git +``` + +- Create new feature branch + +``` +git checkout -b your-feature-branch +``` + +- Commit your change and push it to your repo + +``` +git commit -m 'new feature' +git push origin your-feature-branch +``` + +- Open a pull request! ## TODOs - More details doc