Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Fix local repo paths in contributor guidance. #253

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,18 @@ If you haven't written Go code on your machine before, first follow the official
Golang instructions for setting up your environment: https://golang.org/doc/code.html

Once you have your environment set up, create a fork of the container-diff repository
with your personal GitHub account. Then, clone the fork into your `$GOPATH`:
with your personal GitHub account. Then, set your fork as a remote for the project in
your `$GOPATH`:

```bash
git clone [email protected]:<your_account>/container-diff.git
$GOPATH/src/github.com/GoogleContainerTools &&
go get -u github.com/GoogleContainerTools/container-diff &&
cd $GOPATH/src/github.com/GoogleContainerTools/container-diff &&
git remote add upstream [email protected]:GoogleContainerTools/container-diff.git
git remote add fork [email protected]:<your_account>/container-diff
```

The last command here sets the official repository as an upstream repository for
your fork, so you can keep your fork in sync with `MASTER`:

You can now push changes to your fork:
```bash
(container-diff) git pull upstream master && git push origin master
(container-diff) git pull origin master && git push fork
```

## Building
Expand Down