Skip to content

Commit bf7ce71

Browse files
committed
administrative stuff
1 parent f696c67 commit bf7ce71

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed
174 KB
Loading
356 KB
Loading

book/06-github/sections/3-maintaining.asc

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,26 @@ The idea here is that you can specify specific things you want or don't want in
304304

305305
==== Project Administration
306306

307-
- adding collaborators
308-
- transferring a project
309-
- turn off force pushing
310-
- default branch
307+
Generally there are not a lot of administrative things you can do with a single project, but there are a couple of items that might be of interest.
308+
309+
===== Changing the Default Branch
310+
311+
If you are using a branch other than ``master'' as your default branch that you want people to open Pull Requests on or see by default, you can change that in your repository's settings page under the ``Options'' tab.
312+
313+
[[_default_branch]]
314+
.Change the default branch for a project.
315+
image::images/maint-10-default-branch.png[Default branch]
316+
317+
Simply change the default branch in the dropdown and that will be the default for all major operations from then on, including which branch is checked out by default when someone clones the repository.
318+
319+
===== Transferring a Project
320+
321+
If you would like to transfer a project to another user or an organization in GitHub, there is a ``Transfer ownership'' option at the bottom of the same ``Options'' tab of your repository settings page that allows you to do this.
322+
323+
[[_transfer_project]]
324+
.Transfer a project to anther GitHub user or Organization.
325+
image::images/maint-11-transfer.png[Transfer]
326+
327+
This is helpful if you are abandoning a project and someone wants to take it over or if your project is getting bigger and want to move it into an organization.
328+
329+
Not only does this move the repository along with all it's watchers and stars to another place, it also sets up a redirect from your URL to the new place. It will also redirect clones and fetches from Git, not just web requests.

0 commit comments

Comments
 (0)