Skip to content

Commit 9f2d627

Browse files
committed
Rename master branch to main
1 parent af4ea14 commit 9f2d627

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

CONTRIBUTING.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ perltidy -l=99 -conv -ci=4 -ola -ce -nbbc -kis -pt=2 -b ddclient
8080

8181
## Git Hygiene
8282

83-
* Please keep your pull request commits rebased on top of master.
83+
* Please keep your pull request commits rebased on top of `main`.
8484
* Please use `git rebase -i` to make your commits easy to review:
8585
- Put unrelated changes in separate commits
8686
- Squash your fixup commits
@@ -190,11 +190,11 @@ better to revert the original change then redo it:
190190

191191
### Merging Pull Requests
192192

193-
To facilitate reviews and code archaeology, `master` should have a
193+
To facilitate reviews and code archaeology, `main` should have a
194194
semi-linear commit history like this:
195195

196196
```
197-
* f4e6e90 [email protected] 2020-05-31 07:29:51 +0200 (master)
197+
* f4e6e90 [email protected] 2020-05-31 07:29:51 +0200 (main)
198198
|\ Merge pull request #142 from rhansen/config-line-format
199199
| * 30180ed [email protected] 2020-05-30 13:09:38 -0400
200200
|/ Expand comment documenting config line format
@@ -231,7 +231,7 @@ has value:
231231
change was made) and the merge timestamp (when it went live).
232232
233233
To achieve a history like the above, the pull request must be rebased
234-
onto `master` before merging. Unfortunately, GitHub does not have a
234+
onto `main` before merging. Unfortunately, GitHub does not have a
235235
one-click way to do this (the "Rebase and merge" option does a
236236
fast-forward merge, which is not what we want). See
237237
[isaacs/github#1143](https://github.com/isaacs/github/issues/1143) and
@@ -254,15 +254,15 @@ git remote set-url origin [email protected]:ddclient/ddclient.git
254254
# Add a remote for the fork used in the PR
255255
git remote add "${PR_USER:?}" [email protected]:"${PR_USER:?}"/ddclient
256256
257-
# Fetch the latest commits for the PR and ddclient master
257+
# Fetch the latest commits for the PR and ddclient main
258258
git remote update -p
259259
260260
# Switch to the pull request branch
261261
git checkout -b "${PR_USER:?}-${PR_BRANCH:?}" "${PR_USER:?}/${PR_BRANCH:?}"
262262
263263
# Rebase the commits (optionally using -i to clean up history) onto
264-
# the current ddclient master branch
265-
git rebase origin/master
264+
# the current ddclient main branch
265+
git rebase origin/main
266266
267267
# Force update the contributor's fork. This will only work if the
268268
# contributor has checked the "Allow edits by maintainers" box in the
@@ -276,19 +276,19 @@ git push -f
276276
# "Allow edits by maintainers", or if you prefer to merge manually,
277277
# continue with the next steps.
278278
279-
# Switch to the local master branch
280-
git checkout master
279+
# Switch to the local main branch
280+
git checkout main
281281
282-
# Make sure the local master branch is up to date
283-
git merge --ff-only origin/master
282+
# Make sure the local main branch is up to date
283+
git merge --ff-only origin/main
284284
285285
# Merge in the rebased pull request branch **WITHOUT DOING A
286286
# FAST-FORWARD MERGE**
287287
git merge --no-ff "${PR_USER:?}-${PR_BRANCH:?}"
288288
289289
# Review the commits before pushing
290-
git log --graph --oneline --decorate origin/master..
290+
git log --graph --oneline --decorate origin/main..
291291
292-
# Push to ddclient master
293-
git push origin master
292+
# Push to ddclient main
293+
git push origin main
294294
```

ChangeLog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ChangeLog
22

33
This document describes notable changes. For details, see the [source code
4-
repository history](https://github.com/ddclient/ddclient/commits/master).
4+
repository history](https://github.com/ddclient/ddclient/commits/main).
55

66
## v4.0.0~alpha (unreleased work-in-progress)
77

0 commit comments

Comments
 (0)