Как удалить проект в github
Перейти к содержимому

Как удалить проект в github

  • автор:

Закрытие и удаление проекты

Сведения о закрытии, повторном открытии и окончательном удалении проект.

Deleting a project

You can delete a project to permanently remove it.

  1. Navigate to your project.
  2. In the top-right, click

Screenshot showing a project's menu bar. The menu icon is highlighted with an orange outline.

to open the menu.

Closing a project

You can close a project to remove it from the list of projects but retain the contents and ability to re-open the project later.

  1. Navigate to your project.
  2. In the top-right, click

Screenshot showing a project's menu bar. The menu icon is highlighted with an orange outline.

to open the menu.

Re-opening an organization project

You can reopen a previously closed project.

    In the upper-right corner of GitHub.com, select your profile photo, then click

Screenshot of the dropdown menu under @octocat's profile picture.

Your organizations.

Screenshot of the navigation bar for an account. A tab, labeled with a table icon and

Projects.

Screenshot showing a project's menu bar. The menu icon is highlighted with an orange outline.

to open the menu.

Re-opening a user project

You can reopen a previously closed project.

    In the top right corner of GitHub.com, click your profile photo, then click Your profile.

Screenshot of the navigation bar for an account. A tab, labeled with a table icon and

Projects.

Screenshot showing a project's menu bar. The menu icon is highlighted with an orange outline.

to open the menu.

Удаление файлов в репозитории

Вы можете удалить отдельный файл или весь каталог в репозитории на GitHub.

Кто может использовать эту функцию.

People with write permissions can delete files or directories in a repository.

About file and directory deletion

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 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 «About pull requests.»

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 GitHub, you must remove the file from your repository’s history. For more information, see «Removing sensitive data from a repository.»

Deleting a file

  1. Browse to the file in your repository that you want to delete.
  2. In the top-right corner, select the

Screenshot of the file list for a directory. To the right of the directory name, a button, labeled with a kebab icon, is outlined in dark orange.

dropdown menu, then click Delete file.

Screenshot of a GitHub pull request showing a dropdown menu with options to choose the commit author email address. octocat@github.com is selected.

  • In the «Commit message» field, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. For more information, see «Creating a commit with multiple authors.»
  • If you have more than one email address associated with your account on GitHub.com, click the email address drop-down menu and select the email address to use as the Git author email address. Only verified email addresses appear in this drop-down menu. If you enabled email address privacy, then a no-reply will be the default commit author email address. For more information about the exact form the no-reply email address can take, see «Setting your commit email address.»

    Screenshot of a GitHub pull request showing a radio button to commit directly to the main branch or to create a new branch. New branch is selected.

    Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. For more information, see «Creating a pull request.»

    Deleting a directory

    1. Browse to the directory in your repository that you want to delete.
    2. In the top-right corner, select the

    Screenshot of the file list for a directory. To the right of the directory name, a button, labeled with a kebab icon, is outlined in dark orange.

    dropdown menu, then click Delete directory.

    Screenshot of a GitHub pull request showing a dropdown menu with options to choose the commit author email address. octocat@github.com is selected.

  • Review the files you will delete.
  • In the «Commit message» field, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. For more information, see «Creating a commit with multiple authors.»
  • If you have more than one email address associated with your account on GitHub.com, click the email address drop-down menu and select the email address to use as the Git author email address. Only verified email addresses appear in this drop-down menu. If you enabled email address privacy, then a no-reply will be the default commit author email address. For more information about the exact form the no-reply email address can take, see «Setting your commit email address.»

    Screenshot of a GitHub pull request showing a radio button to commit directly to the main branch or to create a new branch. New branch is selected.

    Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. For more information, see «Creating a pull request.»

    Удаление репозитория

    Вы можете удалить любой репозиторий или вилку, если вы являетесь владельцем организации или имеете права администратора для репозитория или вилки. При удалении репозитория, в котором создана вилка, вышестоящий репозиторий не удаляется.

    Only members with owner privileges for an organization or admin privileges for a repository can delete an organization repository. If Allow members to delete or transfer repositories for this organization has been disabled, only organization owners can delete organization repositories. For more information, see «Repository roles for an organization.»

    Deleting a public repository will not delete any forks of the repository.

    Warnings:

    • Deleting a repository will permanently delete release attachments and team permissions. This action cannot be undone.
    • Deleting a private repository will delete all forks of the repository.

    Some deleted repositories can be restored within 90 days of deletion. For more information, see «Restoring a deleted repository.»

    1. On GitHub.com, navigate to the main page of the repository.
    2. Under your repository name, click

    Settings. If you cannot see the «Settings» tab, select the

    Screenshot of a repository header showing the tabs. The

    dropdown menu, then click Settings.

    Удаление сайта GitHub Pages

    People with admin or maintainer permissions for a repository can delete a GitHub Pages site.

    GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see «GitHub’s plans.»

    Удаление сайта

    Вы можете удалить сайт двумя способами:

    • Удалите репозиторий. Дополнительные сведения см. в разделе «AUTOTITLE».
    • Измените источник на None ветвь. Дополнительные сведения см. в разделе «Удаление сайта», изменив источник ниже.

    Если вы хотите удалить текущее развертывание сайта, но не хотите удалить сайт, вы можете отменить публикацию сайта. Дополнительные сведения см. в разделе «AUTOTITLE».

    Удаление сайта путем изменения источника

    1. В GitHubперейдите в репозиторий сайта.
    2. Под именем репозитория щелкните

    Параметры. Если вкладка «Параметры» не отображается, выберите раскрывающееся меню

    Снимок экрана: заголовок репозитория с вкладками. Вкладка

    и щелкните Параметры.

    Снимок экрана: параметры страниц в репозитории GitHub . Меню для выбора ветви для источника публикации с меткой

    Pages.

  • В разделе «Сборка и развертывание» в разделе «Источник» выберите «Развернуть из ветви «, даже если сайт использует GitHub Actions.
  • В разделе «Сборка и развертывание» используйте раскрывающееся меню ветви и выберите None источник публикации.

  • Добавить комментарий

    Ваш адрес email не будет опубликован. Обязательные поля помечены *