From bb8ed24b86e5b8c244dbb9dbbb342948e8a01073 Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Wed, 6 Apr 2016 11:35:32 -0700 Subject: [PATCH] Remove server2016 branch from branches.md [skip ci] --- docs/workflow/branches.md | 41 +-------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/docs/workflow/branches.md b/docs/workflow/branches.md index db1f9b0f35..8144df2bc7 100644 --- a/docs/workflow/branches.md +++ b/docs/workflow/branches.md @@ -4,46 +4,7 @@ PowerShell has a number of [long-living](https://git-scm.com/book/en/v2/Git-Bran * **master** -- current development, upstream. It's based on source-depot, but has changes for Linux/OS X. It also has changes for the latest version of .NET Core, i.e. rc3. -* **source-depot** -- an exact mirror of dev branch in Source Depot. +* **source-depot** -- an exact mirror of dev branch in Source Depot for all [mapped](./mapping.md) files. Here code flow in "sd -> github" case. It should be treated mostly as **read-only** (unless you are integrating changes "sd->github"). -* **server2016** -- branch with the code that we want to ship in Server 2016. We use it for "github -> sd" integration. -### Example bugfix - -Create a [feature-branch](https://git-scm.com/book/en/v2/Git-Branching-Branching-Workflows#Topic-Branches) from **server2016**. - -``` -> # switch branch to server2016 to create feature-branch from the right commit -> git checkout server2016 -Branch server2016 set up to track remote branch server2016 from origin. -Switched to a new branch 'server2016' - -# create feature branch -> git checkout -b vors/encoding -``` - -**Note** how we use `alias/feature-name` pattern in the example above. - -Then we develop the changes in the feature branch. -We can push it to the [`origin`](https://github.com/PowerShell/PowerShell) to kick-in CI build or share work-in-progress. - -``` -> git push origin vors/encoding -``` - -Eventually we merge feature branch back to **server2016** via a Pull Request with a codereview from my peers. - -After merging feature branch we should bring changes into **master**, so we have bugfixes in the upstream branch as well. - -``` -> git checkout master -> git checkout -b vors/master -> # look-up the sha1 for relevant commits (i.e. with gitk --all) -> git cherry-pick .. -> git push origin vors/master -``` - -**Note** the first commit is not included in the diaposone, so the interval is open on the left side. - -Then I can create a Pull Requst from `vors/master` to `master` via GitHub web interface.