You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then add the *attrs* repository as *upstream* remote:
61
+
62
+
```console
63
+
$ git remote add -t main -m main --tags upstream https://github.com/python-attrs/attrs.git
64
+
```
65
+
66
+
The next step is to sync the upstream repository with your local copy:
67
+
68
+
```console
69
+
$ git fetch upstream
56
70
```
57
71
72
+
This is important to obtain eventually missing tags, which are needed to install the development version later on.
73
+
See [#1104](https://github.com/python-attrs/attrs/issues/1104) for more information.
74
+
58
75
Change into the newly created directory and after activating a virtual environment install an editable version of *attrs* along with its tests and docs requirements:
59
76
60
77
```console
@@ -81,6 +98,29 @@ $ make html
81
98
82
99
The built documentation can then be found in `docs/_build/html/`.
83
100
101
+
To file a pull request, create a new branch on top of the upstream repository:
102
+
103
+
```console
104
+
$ git fetch --all
105
+
$ git checkout -b my_topical_branch upstream/main
106
+
```
107
+
108
+
Make your changes, push them to your fork (the remote *origin*):
109
+
110
+
```console
111
+
$ git push -u origin
112
+
```
113
+
114
+
and publish the PR in GitHub's web interface!
115
+
116
+
Before starting to work on your next pull request, run the following command to sync your local repository with the remotes:
117
+
118
+
```console
119
+
$ git fetch --all
120
+
$ git checkout main
121
+
$ git merge
122
+
```
123
+
84
124
---
85
125
86
126
To avoid committing code that violates our style guide, we strongly advise you to install [*pre-commit*] and its hooks:
0 commit comments