Skip to content

Commit

Permalink
Merge branch 'main' into hidden-docs-alt
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr authored Nov 17, 2020
2 parents 04dff85 + 08880d9 commit 890e86c
Show file tree
Hide file tree
Showing 58 changed files with 507 additions and 242 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/help/desktop/gear-diff-select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions content/actions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ versions:
<h2 class="mb-2 font-mktg h1">Code examples</h2>

<div class="pr-lg-3 mb-5 mt-3">
<input class="js-code-example-filter input-lg py-2 px-3 col-12 col-lg-8 form-control" placeholder="Search code examples" type="text" autocomplete="off" />
<input class="js-code-example-filter input-lg py-2 px-3 col-12 col-lg-8 form-control" placeholder="Search code examples" type="search" autocomplete="off" aria-label="Search code examples"/>
</div>

<div class="d-flex flex-wrap gutter">
Expand All @@ -79,7 +79,7 @@ versions:
<div class="mb-3">{% octicon "search" width="24" %}</div>
<h3 class="text-normal">Sorry, there is no result for <strong class="js-code-example-filter-value"></strong></h3>
<p class="my-3 f4">It looks like we don't have an example that fits your filter.<br>Try another filter or add your code example</p>
<a href="/github/docs/blob/HEAD/data/variables/action_code_examples.yml">Learn how to add a code example {% octicon "arrow-right" %}</a>
<a href="/github/docs/blob/main/data/variables/action_code_examples.yml">Learn how to add a code example {% octicon "arrow-right" %}</a>
</div>
</div>
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ For the best experience, we recommend using a dedicated bucket for {% data varia

{% warning %}

**Warning:** Make sure to configure the bucket you'll want to use in the future. We do not recommend changing your storage after you start using {% data variables.product.prodname_registry %}.
**Warnings:**
- It's critical you set the restrictive access policies you want for your storage bucket because {% data variables.product.company_short %} does not apply specific object permissions or additional access control lists (ACLs) to your storage bucket configuration. For example, if you make your bucket public, data in the bucket will be accessible on the public internet. For more information, see [Setting bucket and object access permissions](https://docs.aws.amazon.com/AmazonS3/latest/user-guide/set-permissions.html) in the AWS Documentation.
- We recommend using a dedicated bucket for {% data variables.product.prodname_registry %}, separate from the bucket you use for {% data variables.product.prodname_actions %} storage.
- Make sure to configure the bucket you'll want to use in the future. We do not recommend changing your storage after you start using {% data variables.product.prodname_registry %}.

{% endwarning %}

Expand Down
1 change: 0 additions & 1 deletion content/admin/packages/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Managing GitHub Packages for your enterprise
shortTitle: GitHub Packages
intro: 'You can enable {% data variables.product.prodname_registry %} for your enterprise and manage {% data variables.product.prodname_registry %} settings and allowed packaged types.'
redirect_from:
- /enterprise/admin/packages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,48 +35,51 @@ As you make changes to files in your text editor and save them locally, you will

#### Creating a partial commit

If one file contains multiple changes, but you only want *some* of those changes to be included in a commit, you can create a partial commit. The rest of your changes will remain intact, so that you can make additional modifications and commits. This allows you to make separate, meaningful commits, such as keeping line break changes in a commit separate from code or prose changes.
If one file contains multiple changes, but you only want some of those changes to be included in a commit, you can create a partial commit. The rest of your changes will remain intact, so that you can make additional modifications and commits. This allows you to make separate, meaningful commits, such as keeping line break changes in a commit separate from code or prose changes.

When you review the diff of the file, the lines that will be included in the commit are highlighted in blue. To exclude the change, click the changed line so the blue disappears.
{% note %}

**Note:** Split diff displays are currently in beta and subject to change.

{% endnote %}

![Unselected lines in a file](/assets/images/help/desktop/partial-commit.png)
1. To choose how your changes are displayed, in the top-right corner of the changed file, use {% octicon "gear" aria-label="The Gear icon" %} to select **Unified** or **Split**.
![Gear icon with unified and split diffs](/assets/images/help/desktop/gear-diff-select.png)
2. To exclude changed lines from your commit, click one or more changed lines so the blue disappears. The lines that are still highlighted in blue will be included in the commit.
![Unselected lines in a file](/assets/images/help/desktop/partial-commit.png)

#### Discarding changes
### 3. Discarding changes
If you have uncommitted changes that you don't want to keep, you can discard the changes. This will remove the changes from the files on your computer. You can discard all uncommitted changes in one or more files, or you can discard specific lines you added.

You can discard all the uncommitted changes in one file, a range of files, or discard all changes in all files since the last commit.
Discarded changes are saved in a dated file in the Trash. You can recover discarded changes until the Trash is emptied.

{% mac %}
#### Discarding changes in one or more files

{% data reusables.desktop.select-discard-files %}
{% data reusables.desktop.click-discard-files %}
![Discard Changes option in context menu](/assets/images/help/desktop/discard-changes-mac.png)
{% data reusables.desktop.confirm-discard-files %}
![Discard Changes button in the confirmation dialog](/assets/images/help/desktop/discard-changes-confirm-mac.png)

{% tip %}
#### Discarding changes in one or more lines
You can discard one or more changed lines that are uncommitted.

**Tip:** The changes you discarded are saved in a dated file in the Trash and you can recover them until the Trash is emptied.

{% endtip %}
{% note %}

{% endmac %}
**Note:** Discarding single lines is disabled in a group of changes that adds and removes lines.

{% windows %}
{% endnote %}

{% data reusables.desktop.select-discard-files %}{% data reusables.desktop.click-discard-files %}
![Discard Changes option in context menu](/assets/images/help/desktop/discard-changes-win.png)
{% data reusables.desktop.confirm-discard-files %}
![Discard Changes button in the confirmation dialog](/assets/images/help/desktop/discard-changes-confirm-win.png)
To discard one added line, in the list of changed lines, right click on the line you want to discard and select **Discard added line**.

{% tip %}
![Discard single line in the confirmation dialog](/assets/images/help/desktop/discard-single-line.png)

**Tip:** The changes you discarded are saved in a file in the Recycle Bin and you can recover them until it is emptied.
To discard a group of changed lines, right click the vertical bar to the right of the line numbers for the lines you want to discard, then select **Discard added lines**.

{% endtip %}
![Discard a group of added lines in the confirmation dialog](/assets/images/help/desktop/discard-multiple-lines.png)

{% endwindows %}

### 3. Write a commit message and push your changes
### 4. Write a commit message and push your changes

Once you're satisfied with the changes you've chosen to include in your commit, write your commit message and push your changes. If you've collaborated on a commit, you can also attribute a commit to more than one author.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ For more information, see "[Setting your commit email address](/articles/setting

### Creating co-authored commits using {% data variables.product.prodname_desktop %}

You can use {% data variables.product.prodname_desktop %} to create a commit with a co-author. For more information, see "[Write a commit message and push your changes](/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project#3-write-a-commit-message-and-push-your-changes)" and [{% data variables.product.prodname_desktop %}](https://desktop.github.com).
You can use {% data variables.product.prodname_desktop %} to create a commit with a co-author. For more information, see "[Write a commit message and push your changes](/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project#4-write-a-commit-message-and-push-your-changes)" and [{% data variables.product.prodname_desktop %}](https://desktop.github.com).

![Add a co-author to the commit message](/assets/images/help/desktop/co-authors-demo-hq.gif)

Expand Down Expand Up @@ -75,4 +75,4 @@ The new commit and message will appear on {% data variables.product.product_loca
- "[Viewing a summary of repository activity](/articles/viewing-a-summary-of-repository-activity)"
- "[Viewing a project's contributors](/articles/viewing-a-projects-contributors)"
- "[Changing a commit message](/articles/changing-a-commit-message)"
- "[Committing and reviewing changes to your project](/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project#3-write-a-commit-message-and-push-your-changes)" in the {% data variables.product.prodname_desktop %} documentation
- "[Committing and reviewing changes to your project](/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project#4-write-a-commit-message-and-push-your-changes)" in the {% data variables.product.prodname_desktop %} documentation
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ For more information, see the workflow extract in "[Automatic build for a compil
* Building using a distributed build system external to GitHub Actions, using a daemon process.
* {% data variables.product.prodname_codeql %} isn't aware of the specific compiler you are using.

For C# projects using either `dotnet build` or `msbuild` which target .NET Core 2, you should specify `/p:UseSharedCompilation=false` in your workflow's `run` step, when you build your code. The `UseSharedCompilation` flag isn't necessary for .NET Core 3.0 and later.
For .NET Framework projects, and for C# projects using either `dotnet build` or `msbuild` that target .NET Core 2, you should specify `/p:UseSharedCompilation=false` in your workflow's `run` step, when you build your code. The `UseSharedCompilation` flag isn't necessary for .NET Core 3.0 and later.

For example, the following configuration for C# will pass the flag during the first build step.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ versions:

You can see a list of features that are available in beta and a brief description for each feature. Each feature includes a link to give feedback.

1. In the upper-right corner of any page, click your profile photo, then click **Feature preview**.
![Feature preview button](/assets/images/help/settings/feature-preview-button.png)
{% data reusables.feature-preview.feature-preview-setting %}
2. Optionally, to the right of a feature, click **Enable** or **Disable**.
![Enable button in feature preview](/assets/images/help/settings/enable-feature-button.png)
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Managing licenses for Visual Studio subscription with GitHub Enterprise
intro: 'You can manage {% data variables.product.prodname_enterprise %} licensing for {% data variables.product.prodname_vss_ghe %}.'
redirect_from:
- /github/setting-up-and-managing-your-enterprise/managing-licenses-for-the-github-enterprise-and-visual-studio-bundle
- /github/setting-up-and-managing-your-enterprise-account/managing-licenses-for-the-github-enterprise-and-visual-studio-bundle
- /github/articles/about-the-github-and-visual-studio-bundle
- /articles/about-the-github-and-visual-studio-bundle
- /github/setting-up-and-managing-your-enterprise-account/managing-licenses-for-visual-studio-subscription-with-github-enterprise
Expand Down
16 changes: 10 additions & 6 deletions content/github/site-policy/github-acceptable-use-policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ While using the Service, under no circumstances will you:

- harass, abuse, threaten, or incite violence towards any individual or group, including our employees, officers, and agents, or other users;

- post off-topic content, or interact with platform features, in a way that significantly or repeatedly disrupts the experience of other users;

- use our servers for any form of excessive automated bulk activity (for example, spamming or cryptocurrency mining), to place undue burden on our servers through automated means, or to relay any form of unsolicited advertising or solicitation through our servers, such as get-rich-quick schemes;

- use our servers to disrupt or to attempt to disrupt, or to gain or to attempt to gain unauthorized access to, any service, device, data, account or network (unless authorized by the [GitHub Bug Bounty program](https://bounty.github.com));
Expand All @@ -48,15 +50,17 @@ While using the Service, under no circumstances will you:
### 4. Services Usage Limits
You will not reproduce, duplicate, copy, sell, resell or exploit any portion of the Service, use of the Service, or access to the Service without our express written permission.

### 5. Scraping and API Usage Restrictions
Scraping refers to extracting data from our Service via an automated process, such as a bot or webcrawler. It does not refer to the collection of information through our API. Please see Section H of our [Terms of Service](/articles/github-terms-of-service#h-api-terms) for our API Terms. You may scrape the website for the following reasons:
### 5. Information Usage Restrictions
You may use information from our Service for the following reasons, regardless of whether the information was scraped, collected through our API, or obtained otherwise:

- Researchers may use public, non-personal information from the Service for research purposes, only if any publications resulting from that research are [open access](https://en.wikipedia.org/wiki/Open_access).
- Archivists may use public information from the Service for archival purposes.

- Researchers may scrape public, non-personal information from the Service for research purposes, only if any publications resulting from that research are open access.
- Archivists may scrape the Service for public data for archival purposes.
Scraping refers to extracting information from our Service via an automated process, such as a bot or webcrawler. Scraping does not refer to the collection of information through our API. Please see Section H of our [Terms of Service](/articles/github-terms-of-service#h-api-terms) for our API Terms.

You may not scrape the Service for spamming purposes, including for the purposes of selling User Personal Information (as defined in the [GitHub Privacy Statement](/articles/github-privacy-statement)), such as to recruiters, headhunters, and job boards.
You may not use information from the Service (whether scraped, collected through our API, or obtained otherwise) for spamming purposes, including for the purposes of sending unsolicited emails to users or selling User Personal Information (as defined in the [GitHub Privacy Statement](/github/site-policy/github-privacy-statement)), such as to recruiters, headhunters, and job boards.

All use of data gathered through scraping must comply with the [GitHub Privacy Statement](/articles/github-privacy-statement).
Your use of information from the Service must comply with the [GitHub Privacy Statement](/github/site-policy/github-privacy-statement).

### 6. Privacy
Misuse of User Personal Information is prohibited.
Expand Down
Loading

0 comments on commit 890e86c

Please sign in to comment.