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
Copy file name to clipboardExpand all lines: content/github/administering-a-repository/renaming-a-branch.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ intro: You can change the name of a branch in a repository.
4
4
permissions: People with write permissions to a repository can rename a branch in the repository. People with admin permissions can rename the default branch.
5
5
versions:
6
6
free-pro-team: '*'
7
-
enterprise-server: '>=3.1'
7
+
enterprise-server: '>=3.2'
8
8
topics:
9
9
- repositories
10
10
---
@@ -13,7 +13,9 @@ topics:
13
13
14
14
You can rename a branch in a repository on {% data variables.product.product_location %}. For more information about branches, see "[About branches](/github/collaborating-with-issues-and-pull-requests/about-branches)."
15
15
16
-
If you rename a branch, {% data variables.product.prodname_dotcom %} will automatically redirect links on {% if currentVersion == "free-pro-team@latest" %}{% data variables.product.prodname_dotcom_the_website %}{% else %}{% data variables.product.product_location_enterprise %}{% endif %} that contain the old branch name to the equivalent link on the renamed branch. {% data variables.product.prodname_dotcom %} will also update branch protection policies, as well as the base branch for open pull requests and draft releases.
16
+
When you rename a branch on {% data variables.product.product_location %}, any URLs that contain the old branch name are automatically redirected to the equivalent URL for the renamed branch. Branch protection policies are also updated, as well as the base branch for open pull requests (including those for forks) and draft releases. After the rename is complete, {% data variables.product.prodname_dotcom %} provides instructions on the repository's home page directing contributors to update their local Git environments.
17
+
18
+
Although file URLs are automatically redirected, raw file URLs are not redirected. Also, {% data variables.product.prodname_dotcom %} does not perform any redirects if users perform a `git pull` for the previous branch name.
Copy file name to clipboardExpand all lines: content/github/creating-cloning-and-archiving-repositories/about-repository-languages.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ topics:
18
18
{% data variables.product.product_name %} uses the open source [Linguist library](https://github.com/github/linguist) to
19
19
determine file languages for syntax highlighting and repository statistics. Language statistics will update after you push changes to your default branch.
20
20
21
-
Some files are hard to identify, and sometimes projects contain more library and vendor files than their primary code. If you're receiving incorrect results, please consult the Linguist [troubleshooting guide](https://github.com/github/linguist#troubleshooting) for help.
21
+
Some files are hard to identify, and sometimes projects contain more library and vendor files than their primary code. If you're receiving incorrect results, please consult the Linguist [troubleshooting guide](https://github.com/github/linguist/blob/master/docs/troubleshooting.md) for help.
Copy file name to clipboardExpand all lines: content/github/writing-on-github/creating-gists.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ If your site administrator has disabled private mode, you can also use anonymous
33
33
You'll receive a notification when:
34
34
- You are the author of a gist.
35
35
- Someone mentions you in a gist.
36
-
- You subscribe to a gist, by clicking **Subscribe** at the top any gist.
36
+
- You subscribe to a gist, by clicking **Subscribe** at the top of any gist.
37
37
38
38
{% if currentVersion == "free-pro-team@latest" or enterpriseServerVersions contains currentVersion %}
39
39
@@ -55,13 +55,15 @@ Gist supports mapping GeoJSON files. These maps are displayed in embedded gists,
55
55
56
56
### Creating a gist
57
57
58
-
You can also drag and drop a text file from your desktop directly into the gist editor.
58
+
Follow the steps below to create a gist.
59
59
60
60
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.19" or currentVersion == "github-ae@latest" %}
61
61
{% note %}
62
62
63
63
You can also create a gist using the {% data variables.product.prodname_cli %}. For more information, see "[`gh gist create`](https://cli.github.com/manual/gh_gist_create)" in the {% data variables.product.prodname_cli %} documentation.
64
64
65
+
Alternatively, you can drag and drop a text file from your desktop directly into the editor.
66
+
65
67
{% endnote %}
66
68
{% endif %}
67
69
@@ -70,7 +72,7 @@ You can also create a gist using the {% data variables.product.prodname_cli %}.
70
72
3. Type an optional description and name for your gist.
71
73

72
74
73
-
4. Type the text of your gist into the gist text box.
75
+
4. Type the text of your gist into the gist text box.
74
76

75
77
76
78
5. Optionally, to create {% if currentVersion == "github-ae@latest" %}an internal{% else %}a public{% endif %} gist, click {% octicon "triangle-down" aria-label="The downwards triangle icon" %}, then click **Create {% if currentVersion == "github-ae@latest" %}internal{% else %}public{% endif %} gist**.
0 commit comments