Remove all ifversion that has all versions (11) (#49526)
This commit is contained in:
@@ -190,7 +190,7 @@ You can install packages from {% data variables.product.prodname_registry %} by
|
||||
|
||||
By default, you can add packages from one organization. For more information, see "[Installing packages from other organizations](#installing-packages-from-other-organizations)."
|
||||
|
||||
You also need to add the _.npmrc_ file to your project so that all requests to install packages will go through {% data variables.product.prodname_registry %}. {% ifversion fpt or ghes or ghec %}When you route all package requests through {% data variables.product.prodname_registry %}, you can use both scoped and unscoped packages from _npmjs.org_. For more information, see "[npm-scope](https://docs.npmjs.com/misc/scope)" in the npm documentation.{% endif %}
|
||||
You also need to add the _.npmrc_ file to your project so that all requests to install packages will go through {% data variables.product.prodname_registry %}. When you route all package requests through {% data variables.product.prodname_registry %}, you can use both scoped and unscoped packages from _npmjs.org_. For more information, see "[npm-scope](https://docs.npmjs.com/misc/scope)" in the npm documentation.
|
||||
|
||||
{% data reusables.package_registry.authenticate-step %}
|
||||
{% data reusables.package_registry.create-npmrc-owner-step %}
|
||||
|
||||
@@ -78,8 +78,6 @@ For more information on reviewing pull requests in {% data variables.product.pro
|
||||
{% endcodespaces %}
|
||||
{% endif %}
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
## Reviewing dependency changes
|
||||
|
||||
If the pull request contains changes to dependencies you can use the dependency review for a manifest or lock file to see what has changed and check whether the changes introduce security vulnerabilities. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-dependency-changes-in-a-pull-request)."
|
||||
@@ -91,7 +89,6 @@ If the pull request contains changes to dependencies you can use the dependency
|
||||

|
||||
|
||||
{% data reusables.repositories.return-to-source-diff %}
|
||||
{% endif %}
|
||||
|
||||
## Marking a file as viewed
|
||||
|
||||
|
||||
@@ -38,14 +38,10 @@ Open source software is based on the idea that by sharing code, we can make bett
|
||||
|
||||
For more information about applying open source principles to your organization's development work on {% data variables.location.product_location %}, see {% data variables.product.prodname_dotcom %}'s white paper "[An introduction to innersource](https://resources.github.com/whitepapers/introduction-to-innersource/)."
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
When creating your public repository from a fork of someone's project, make sure to include a license file that determines how you want your project to be shared with others. For more information, see "[Choose an open source license](https://choosealicense.com/)" at choosealicense.com.
|
||||
|
||||
{% data reusables.open-source.open-source-guide-repositories %} {% data reusables.open-source.open-source-learning %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Prerequisites
|
||||
|
||||
If you haven't yet, first set up Git and authentication with {% data variables.location.product_location %} from Git. For more information, see "[AUTOTITLE](/get-started/getting-started-with-git/set-up-git)."
|
||||
|
||||
@@ -21,20 +21,14 @@ shortTitle: Deleted or changes visibility
|
||||
|
||||
When you delete a private repository, all of its private forks are also deleted.
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
## Deleting a public repository
|
||||
|
||||
When you delete a public repository, one of the existing public forks is chosen to be the new upstream repository. All other repositories are forked off of this new upstream and subsequent pull requests go to this new upstream repository.
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Private forks and permissions
|
||||
|
||||
{% data reusables.repositories.private_forks_inherit_permissions %}
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
## Changing a public repository to a private repository
|
||||
|
||||
If a public repository is made private, its public forks are split off into a new network. As with deleting a public repository, one of the existing public forks is chosen to be the new upstream repository and all other repositories are forked off of this new upstream. Subsequent pull requests go to this new upstream repository.
|
||||
@@ -57,8 +51,6 @@ When you change a private repository to public, all the commits in that reposito
|
||||
|
||||
If a private repository is made public and then deleted, its private forks will continue to exist as standalone private repositories in separate networks.
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% ifversion ghes or ghec %}
|
||||
|
||||
## Changing the visibility of an internal repository
|
||||
|
||||
@@ -31,12 +31,8 @@ If you put your README file in your repository's hidden `.github`, root, or `doc
|
||||
|
||||
If a repository contains more than one README file, then the file shown is chosen from locations in the following order: the `.github` directory, then the repository's root directory, and finally the `docs` directory.
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
{% data reusables.profile.profile-readme %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Auto-generated table of contents for README files
|
||||
|
||||
For the rendered view of any Markdown file in a repository, including README files, {% data variables.product.product_name %} will automatically generate a table of contents based on section headings. You can view the table of contents for a README file by clicking the {% octicon "list-unordered" aria-label="Table of Contents" %} menu icon at the top left of the rendered page.
|
||||
|
||||
@@ -57,13 +57,12 @@ You can manage the security and analysis features for your {% ifversion fpt or g
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
{% data reusables.repositories.sidebar-settings %}
|
||||
{% data reusables.repositories.navigate-to-code-security-and-analysis %}
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
1. Under "Code security and analysis", to the right of the feature, click **Disable** or **Enable**. {% ifversion not fpt %}The control for "{% data variables.product.prodname_GH_advanced_security %}" is disabled if your enterprise has no available licenses for {% data variables.product.prodname_advanced_security %}.{% endif %}
|
||||
{% ifversion not fpt %}
|
||||
{% note %}
|
||||
|
||||
**Note:** If you disable {% data variables.product.prodname_GH_advanced_security %}, {% ifversion ghec %}dependency review, {% endif %}{% data variables.secret-scanning.user_alerts %} and {% data variables.product.prodname_code_scanning %} are disabled. Any workflows, SARIF uploads, or API calls for {% data variables.product.prodname_code_scanning %} will fail. If {% data variables.product.prodname_GH_advanced_security %} is re-enabled, {% data variables.product.prodname_code_scanning %} will return to its previous state.
|
||||
{% endnote %}{% endif %}
|
||||
{% endnote %}
|
||||
{% endif %}
|
||||
|
||||
## Granting access to security alerts
|
||||
|
||||
@@ -49,10 +49,9 @@ We recommend reviewing the following caveats before you change the visibility of
|
||||
|
||||
### Making a repository private
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
- {% data variables.product.product_name %} will detach public forks of the public repository and put them into a new network. Public forks are not made private.{% endif %}
|
||||
- {% data variables.product.product_name %} will detach public forks of the public repository and put them into a new network. Public forks are not made private.
|
||||
{%- ifversion ghes or ghec %}
|
||||
- If you change a repository's visibility from internal to private, {% data variables.product.prodname_dotcom %} will remove forks that belong to any user without access to the newly private repository. {% ifversion fpt or ghes or ghec %}The visibility of any forks will also change to private.{% endif %} For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/working-with-forks/what-happens-to-forks-when-a-repository-is-deleted-or-changes-visibility)"
|
||||
- If you change a repository's visibility from internal to private, {% data variables.product.prodname_dotcom %} will remove forks that belong to any user without access to the newly private repository. The visibility of any forks will also change to private. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/working-with-forks/what-happens-to-forks-when-a-repository-is-deleted-or-changes-visibility)"
|
||||
{%- endif %}
|
||||
{%- ifversion fpt %}
|
||||
- If you're using {% data variables.product.prodname_free_user %} for personal accounts or organizations, some features won't be available in the repository after you change the visibility to private. Any published {% data variables.product.prodname_pages %} site will be automatically unpublished. If you added a custom domain to the {% data variables.product.prodname_pages %} site, you should remove or update your DNS records before making the repository private, to avoid the risk of a domain takeover. For more information, see "[AUTOTITLE](/get-started/learning-about-github/githubs-plans)" and "[AUTOTITLE](/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site)."
|
||||
@@ -73,8 +72,6 @@ We recommend reviewing the following caveats before you change the visibility of
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
### Making a repository public
|
||||
|
||||
- {% data variables.product.product_name %} will detach private forks and turn them into a standalone private repository. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/working-with-forks/what-happens-to-forks-when-a-repository-is-deleted-or-changes-visibility#changing-a-private-repository-to-a-public-repository)"{% ifversion fpt or ghec %}
|
||||
@@ -83,8 +80,6 @@ We recommend reviewing the following caveats before you change the visibility of
|
||||
|
||||
For information about improving repository security, see "[AUTOTITLE](/code-security/getting-started/securing-your-repository)."{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
## Changing a repository's visibility
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Deleting files in a repository
|
||||
intro: 'You can delete an individual file{% ifversion fpt or ghes or ghec %} or an entire directory{% endif %} in your repository on {% data variables.product.product_name %}.'
|
||||
intro: 'You can delete an individual file or an entire directory in your repository on {% data variables.product.product_name %}.'
|
||||
redirect_from:
|
||||
- /articles/deleting-files
|
||||
- /github/managing-files-in-a-repository/deleting-files
|
||||
@@ -11,18 +11,18 @@ versions:
|
||||
fpt: '*'
|
||||
ghes: '*'
|
||||
ghec: '*'
|
||||
permissions: 'People with write permissions can delete files{% ifversion fpt or ghes or ghec %} or directories{% endif %} in a repository.'
|
||||
permissions: 'People with write permissions can delete files or directories in a repository.'
|
||||
topics:
|
||||
- Repositories
|
||||
shortTitle: Delete files
|
||||
---
|
||||
## About file{% ifversion fpt or ghes or ghec %} and directory{% endif %} deletion
|
||||
## About file and directory deletion
|
||||
|
||||
You can delete an individual file in your repository{% ifversion fpt or ghes or ghec %} or an entire directory, including all the files in the directory{% endif %}.
|
||||
You can delete an individual file in your repository or an entire directory, including all the files in the directory.
|
||||
|
||||
If you try to delete a file{% ifversion fpt or ghes or ghec %} or directory{% endif %} in a repository that you don’t have write permissions to, we'll fork the project to your personal account and help you send a pull request to the original repository after you commit your change. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)."
|
||||
If you try to delete a file or directory in a repository that you don’t have write permissions to, we'll fork the project to your personal account and help you send a pull request to the original repository after you commit your change. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)."
|
||||
|
||||
If the file{% ifversion fpt or ghes or ghec %} or directory{% endif %} you deleted contains sensitive data, the data will still be available in the repository's Git history. To completely remove the file from {% data variables.product.product_name %}, you must remove the file from your repository's history. For more information, see "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository)."
|
||||
If the file or directory you deleted contains sensitive data, the data will still be available in the repository's Git history. To completely remove the file from {% data variables.product.product_name %}, you must remove the file from your repository's history. For more information, see "[AUTOTITLE](/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository)."
|
||||
|
||||
## Deleting a file
|
||||
|
||||
@@ -39,17 +39,14 @@ If the file{% ifversion fpt or ghes or ghec %} or directory{% endif %} you delet
|
||||
{% data reusables.files.choose_commit_branch %}
|
||||
{% data reusables.files.propose_file_change %}
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
## Deleting a directory
|
||||
|
||||
1. Browse to the directory in your repository that you want to delete.
|
||||
1. In the top-right corner, select the {% octicon "kebab-horizontal" aria-label="More options" %} dropdown menu, then click **Delete directory**.
|
||||
|
||||
|
||||

|
||||
1. Review the files you will delete.
|
||||
{% data reusables.files.commit-message %}
|
||||
{% data reusables.files.choose-commit-email %}
|
||||
{% data reusables.files.choose_commit_branch %}
|
||||
{% data reusables.files.propose_file_change %}
|
||||
{% endif %}
|
||||
|
||||
@@ -18,13 +18,10 @@ autogenerated: rest
|
||||
|
||||
{% data reusables.organizations.team-api %}
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
{% note %}
|
||||
|
||||
**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API to make changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[AUTOTITLE](/enterprise-cloud@latest/organizations/managing-saml-single-sign-on-for-your-organization/managing-team-synchronization-for-your-organization)."
|
||||
|
||||
{% endnote %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
<!-- Content after this section is automatically generated -->
|
||||
|
||||
@@ -175,8 +175,6 @@ Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
{% data reusables.webhooks.member_event_api_properties %}
|
||||
{% data reusables.webhooks.member_properties %}
|
||||
|
||||
{% ifversion fpt or ghes or ghec %}
|
||||
|
||||
## PublicEvent
|
||||
|
||||
{% data reusables.webhooks.public_short_desc %}
|
||||
@@ -184,7 +182,6 @@ Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
### Event `payload` object for PublicEvent
|
||||
|
||||
This event returns an empty `payload` object.
|
||||
{% endif %}
|
||||
|
||||
## PullRequestEvent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user