You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/README.md

67 lines
1.8 KiB

**This is a temporary README. We'll restore the old README prior to PR upstream.**
8 years ago
# Consul Connect
11 years ago
This repository is the forked repository for Consul Connect work to happen
in private prior to public release. This README will explain how to safely
use this fork, how to bring in upstream changes, etc.
11 years ago
## Cloning
11 years ago
To use this repository, clone it into your GOPATH as usual but you must
**rename `consul-connect` to `consul`** so that Go imports continue working
as usual.
11 years ago
## Important: Never Modify Master
11 years ago
**NEVER MODIFY MASTER! NEVER MODIFY MASTER!**
11 years ago
We want to keep the "master" branch equivalent to OSS master. This will make
rebasing easy for master. Instead, we'll use the branch `f-connect`. All
feature branches should branch from `f-connect` and make PRs against
`f-connect`.
11 years ago
When we're ready to merge back to upstream, we can make a single mega PR
merging `f-connect` into OSS master. This way we don't have a sudden mega
push to master on OSS.
11 years ago
## Creating a Feature Branch
11 years ago
To create a feature branch, branch from `f-connect`:
11 years ago
```sh
git checkout f-connect
git checkout -b my-new-branch
```
11 years ago
All merged Connect features will be in `f-connect`, so you want to work
from that branch. When making a PR for your feature branch, target the
`f-connect` branch as the merge target. You can do this by using the dropdowns
in the GitHub UI when creating a PR.
11 years ago
## Syncing Upstream
11 years ago
First update our local master:
11 years ago
```sh
# This has to happen on forked master
git checkout master
11 years ago
# Add upstream to OSS Consul
git remote add upstream https://github.com/hashicorp/consul.git
11 years ago
# Fetch it
git fetch upstream
11 years ago
# Rebase forked master onto upstream. This should have no changes since
# we're never modifying master.
git rebase upstream master
11 years ago
```
Next, update the `f-connect` branch:
11 years ago
```sh
git checkout f-connect
git rebase origin master
```