Permalink
Newer
Older
100644 31 lines (20 sloc) 888 Bytes
1
# Contributing to Cockroach
2
3
### Getting and building
4
5
A working [Go environment](http://golang.org/doc/code.html) and [prerequisites for building
6
RocksDB](https://github.com/cockroachdb/rocksdb/blob/master/INSTALL.md) are both presumed.
7
```bash
Andrew Bonventre
Sep 7, 2014
8
mkdir -p $GOPATH/src/github.com/cockroachdb/
9
cd $GOPATH/src/github.com/cockroachdb/
10
git clone git@github.com:cockroachdb/cockroach.git
11
cd cockroach
12
./bootstrap.sh
13
make
14
```
15
Andrew Bonventre
Sep 7, 2014
16
### Code review workflow
Andrew Bonventre
Sep 7, 2014
18
+ Create a local branch to do work on.
Andrew Bonventre
Sep 7, 2014
20
`git checkout -b andybons/update-readme`
21
Andrew Bonventre
Sep 7, 2014
22
+ Hack away and commit your changes locally using `git add` and `git commit`.
23
Andrew Bonventre
Sep 7, 2014
24
`git commit -a -m 'update CONTRIBUTING.md'`
25
Andrew Bonventre
Sep 7, 2014
26
+ When you’re ready for review, create a remote branch from your local branch.
27
Andrew Bonventre
Sep 7, 2014
28
`git push -u origin andybons/update-readme`
29
Andrew Bonventre
Sep 7, 2014
30
+ Then [create a pull request using GitHub’s UI](https://help.github.com/articles/creating-a-pull-request).