-
Fork in the cloud
- Visit https://github.com/google/go-flow-levee
- Click
Fork
button (top right) to establish a cloud-based fork.
-
Clone fork to local storage
cd $(go env GOPATH)/src/ git clone https://github.com/<your-github-username>/go-flow-levee.git cd go-flow-levee git remote add upstream https://github.com/google/go-flow-levee.git # Never push to upstream master git remote set-url --push upstream no_push # Confirm that your remotes make sense: git remote -v
-
Branch
Get your local master up to date:
cd $(go env GOPATH)/src/go-flow-levee git fetch upstream git checkout master git merge upstream/master
Branch from it:
git checkout -b featurebranch
-
Keep your branch in sync
git fetch upstream git merge upstream/master
-
Pushing your commits
git push origin featurebranch
Note: Please avoid force-pushing, as it can break links to commits and cause GitHub to lose track of comment threads.
-
Create a Pull Request
- Go to https://github.com/google/go-flow-levee
- Click on the "Compare & pull request" button.
Note: When merging your PR, please use a squash merge.