Skip to content

Commit 26da8cc

Browse files
committed
Rewrite adn simplify git pieces
1 parent a80c9cc commit 26da8cc

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/contributing/core/index.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,9 @@ Members of the `plone/contributors` team do not have write access, and instead m
155155
```
156156

157157
Always begin by checking out the git branch on which you want to work.
158-
If you have not yet checked out a branch, then you need to track it with the `-t` option and specify the remote to track, usually called `origin`.
159-
The following command will switch and track changes from the remote `origin` and its branch `6.1`.
158+
This is the base branch to which you will create a pull request.
160159

161-
```shell
162-
git checkout -t origin/6.1
163-
```
164-
165-
Now going forward, you need to specify only the local branch when you want to switch back to it from your development branch.
160+
If you just cloned `https://github.com/plone/buildout.coredev`, then the `6.1` branch is checked out and current, and you can skip the rest of this section and continue on the next, {ref}`contributing-core-edit-packages-label`.
166161

167162
```shell
168163
git checkout 6.1
@@ -175,6 +170,8 @@ git pull
175170
```
176171

177172

173+
(contributing-core-edit-packages-label)=
174+
178175
## Edit packages
179176

180177
First identify the names of the Plone packages you want to work on.
@@ -225,7 +222,7 @@ Next create a new development branch on which you want to work from the current
225222
It's a good idea to use a branch name that includes the issue number and is descriptive of what it resolves.
226223

227224
```shell
228-
git switch -c 123-thing-i-fixed -t origin/6.1
225+
git switch -c 123-thing-i-fixed
229226
```
230227

231228
Now you can edit your code without affecting the original branch.

0 commit comments

Comments
 (0)