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
This is a rough outline of what a contributor's workflow looks like:
14
27
15
28
- Create a topic branch from where you want to base your work
16
29
- Make commits of logical units
17
30
- Make sure your commit messages are in the proper format (see below)
18
-
- Push your changes to a topic branch in the repository or a fork if you don't have commit access to (the reason that pushing directly to the repo is preferred is because then CI will be able to add benchmark results to the PR in the comments).
31
+
- Push your changes to a topic branch in the repository (push to your fork if
32
+
you don't have commit access to the dbsp repository --- pushing directly
33
+
to the repo is preferred because then CI will be able to add benchmark
If you don't have permissions replace the last command with
57
+
58
+
```
38
59
git push --force-with-lease origin my-new-feature
39
60
```
40
61
@@ -47,15 +68,15 @@ If your pull request contains a single commit or your changes are related to the
47
68
amend the commit.
48
69
49
70
```shell
50
-
git add .
71
+
git add <files to add>
51
72
git commit --amend
52
73
git push --force-with-lease origin my-new-feature
53
74
```
54
75
55
76
If you need to squash changes into an earlier commit, you can use:
56
77
57
78
```shell
58
-
git add .
79
+
git add <files to add>
59
80
git commit --fixup <commit>
60
81
git rebase -i --autosquash main
61
82
git push --force-with-lease origin my-new-feature
@@ -67,7 +88,7 @@ notification when you git push.
67
88
### Merging a pull request
68
89
69
90
Since we run benchmarks as part of CI it's good practice to preserve the commit IDs of the feature branch
70
-
we've worked on (and benchmarked). Unfortunately, [the github UI does not have support for this](https://github.com/community/community/discussions/4618)
91
+
we've worked on (and benchmarked). Unfortunately, [the github UI does not have support for this](https://github.com/community/community/discussions/4618)
71
92
(it only allows rebase, squash and merge commits to close PRs).
72
93
Therefore, it's recommended to merge PRs using the following git CLI invocation:
0 commit comments