diff --git a/translations/log/msft-ru-resets.csv b/translations/log/msft-ru-resets.csv index 4ddc0819a1..3a01fee111 100644 --- a/translations/log/msft-ru-resets.csv +++ b/translations/log/msft-ru-resets.csv @@ -733,7 +733,6 @@ translations/ru-RU/content/authentication/troubleshooting-ssh/error-agent-admitt translations/ru-RU/content/authentication/troubleshooting-ssh/error-key-already-in-use.md,rendering error translations/ru-RU/content/authentication/troubleshooting-ssh/error-permission-denied-publickey.md,rendering error translations/ru-RU/content/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase.md,rendering error -translations/ru-RU/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md,rendering error translations/ru-RU/content/billing/managing-billing-for-github-actions/about-billing-for-github-actions.md,rendering error translations/ru-RU/content/billing/managing-billing-for-github-advanced-security/about-billing-for-github-advanced-security.md,rendering error translations/ru-RU/content/billing/managing-billing-for-github-advanced-security/viewing-your-github-advanced-security-usage.md,rendering error @@ -820,6 +819,7 @@ translations/ru-RU/content/code-security/supply-chain-security/understanding-you translations/ru-RU/content/code-security/supply-chain-security/understanding-your-software-supply-chain/configuring-the-dependency-graph.md,rendering error translations/ru-RU/content/codespaces/codespaces-reference/security-in-github-codespaces.md,broken liquid tags translations/ru-RU/content/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository.md,rendering error +translations/ru-RU/content/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template.md,rendering error translations/ru-RU/content/codespaces/developing-in-codespaces/stopping-and-starting-a-codespace.md,rendering error translations/ru-RU/content/codespaces/managing-your-codespaces/reviewing-your-security-logs-for-github-codespaces.md,broken liquid tags translations/ru-RU/content/codespaces/overview.md,rendering error @@ -829,6 +829,7 @@ translations/ru-RU/content/communities/documenting-your-project-with-wikis/about translations/ru-RU/content/communities/documenting-your-project-with-wikis/changing-access-permissions-for-wikis.md,rendering error translations/ru-RU/content/communities/documenting-your-project-with-wikis/editing-wiki-content.md,rendering error translations/ru-RU/content/communities/setting-up-your-project-for-healthy-contributions/setting-guidelines-for-repository-contributors.md,rendering error +translations/ru-RU/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository.md,rendering error translations/ru-RU/content/copilot/getting-started-with-github-copilot/getting-started-with-github-copilot-in-neovim.md,rendering error translations/ru-RU/content/copilot/quickstart.md,broken liquid tags translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/adding-and-cloning-repositories/cloning-a-repository-from-github-to-github-desktop.md,rendering error @@ -1050,7 +1051,6 @@ translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/propos translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/keeping-your-pull-request-in-sync-with-the-base-branch.md,rendering error translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-dependency-changes-in-a-pull-request.md,rendering error translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request.md,rendering error -translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork.md,rendering error translations/ru-RU/content/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message.md,rendering error translations/ru-RU/content/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-on-behalf-of-an-organization.md,rendering error translations/ru-RU/content/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors.md,rendering error diff --git a/translations/ru-RU/content/admin/packages/enabling-github-packages-with-azure-blob-storage.md b/translations/ru-RU/content/admin/packages/enabling-github-packages-with-azure-blob-storage.md index a1a74dd1f4..a7060df4d0 100644 --- a/translations/ru-RU/content/admin/packages/enabling-github-packages-with-azure-blob-storage.md +++ b/translations/ru-RU/content/admin/packages/enabling-github-packages-with-azure-blob-storage.md @@ -31,6 +31,9 @@ Before you can enable and configure {% data variables.product.prodname_registry {% data reusables.enterprise_site_admin_settings.packages-tab %} {% data reusables.package_registry.enable-enterprise-github-packages %} 1. Under "Packages Storage", select **Azure Blob Storage** and enter your Azure container name for your packages storage bucket and connection string. + + - You must create a storage container prior to setting the container name and connection string. + ![Azure Blob storage container name and connection string boxes](/assets/images/help/package-registry/azure-blob-storage-settings.png) {% note %} diff --git a/translations/ru-RU/content/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints.md b/translations/ru-RU/content/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints.md index 5b18d8be7a..aa3e4da016 100644 --- a/translations/ru-RU/content/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints.md +++ b/translations/ru-RU/content/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints.md @@ -14,17 +14,26 @@ topics: - Identity - Access management shortTitle: SSH key fingerprints -ms.openlocfilehash: b17285e62daf1f71c603e004a5bb00b786e3038a -ms.sourcegitcommit: 605b619588c51336f3ffe9d13c68503ae45cbfc6 +ms.openlocfilehash: 153c1b4ac8be917cf111fe8998ac8df8bd1bc7ed +ms.sourcegitcommit: 8c8d8598beeaa4f83b3f30cb160a5288fdb4ef9a ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 10/07/2022 -ms.locfileid: '148013841' +ms.lasthandoff: 12/02/2022 +ms.locfileid: '148190333' --- Отпечатки открытого ключа {% data variables.product.prodname_dotcom %}: - `SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8` (RSA) +- `SHA256:br9IjFspm1vxR3iA35FWE+4VTyz1hYVLIE2t1/CeyWQ` (DSA — не рекомендуется) - `SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM` (ECDSA) - `SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU` (Ed25519) -Дополнительные сведения см. в разделе ["Получение метаданных](/rest/meta#get-github-meta-information)". +Вы можете добавить в файл следующие записи `~.ssh/known_hosts` ключа SSH, чтобы избежать ручной проверки узлов {% data variables.product.prodname_dotcom %}: + +```text +github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl +github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= +github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== +``` + +Дополнительные сведения см. в разделе [Получение метаданных {% data variables.product.prodname_dotcom %}](/rest/meta#get-github-meta-information). diff --git a/translations/ru-RU/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md b/translations/ru-RU/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md index 92f37fba9d..b857e9b5c9 100644 --- a/translations/ru-RU/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md +++ b/translations/ru-RU/content/authentication/troubleshooting-ssh/using-ssh-over-the-https-port.md @@ -1,6 +1,6 @@ --- -title: Using SSH over the HTTPS port -intro: 'Sometimes, firewalls refuse to allow SSH connections entirely. If using [HTTPS cloning with credential caching](/github/getting-started-with-github/caching-your-github-credentials-in-git) is not an option, you can attempt to clone using an SSH connection made over the HTTPS port. Most firewall rules should allow this, but proxy servers may interfere.' +title: Использование SSH через порт HTTPS +intro: 'Иногда брандмауэры отказываются в полной мере разрешать подключения по протоколу SSH. Если использование [клонирования HTTPS с кэшированием учетных данных](/github/getting-started-with-github/caching-your-github-credentials-in-git) недоступно, можно попытаться выполнить клонирование с помощью SSH-подключения, выполненного через порт HTTPS. Большинство правил брандмауэра должны разрешать этот вариант, но прокси-серверы могут этому помешать.' redirect_from: - /articles/using-ssh-over-the-https-port - /github/authenticating-to-github/using-ssh-over-the-https-port @@ -11,14 +11,20 @@ versions: topics: - SSH shortTitle: Use SSH over HTTPS port +ms.openlocfilehash: 24a56147129e68c674eaf8dc733a203e2b03348a +ms.sourcegitcommit: 8c8d8598beeaa4f83b3f30cb160a5288fdb4ef9a +ms.translationtype: MT +ms.contentlocale: ru-RU +ms.lasthandoff: 12/02/2022 +ms.locfileid: '148190325' --- {% tip %} -**{% data variables.product.prodname_ghe_server %} users**: Accessing {% data variables.product.prodname_ghe_server %} via SSH over the HTTPS port is currently not supported. +**Пользователи {% data variables.product.prodname_ghe_server %}** : доступ к {% data variables.product.prodname_ghe_server %} по SSH через порт HTTPS в настоящее время не поддерживается. {% endtip %} -To test if SSH over the HTTPS port is possible, run this SSH command: +Чтобы проверить, возможно ли подключение по протоколу SSH через порт HTTPS, выполните следующую команду SSH: ```shell $ ssh -T -p 443 git@ssh.github.com @@ -28,23 +34,23 @@ $ ssh -T -p 443 git@ssh.github.com {% note %} -**Note**: The hostname for port 443 is `ssh.{% data variables.command_line.backticks %}`, not `{% data variables.command_line.backticks %}`. +**Примечание**. Имя узла для порта 443 — , а `ssh.{% data variables.command_line.backticks %}`не `{% data variables.command_line.backticks %}`. -{% endnote %} +{% endnote %} -If that worked, great! If not, you may need to [follow our troubleshooting guide](/articles/error-permission-denied-publickey). +Если она выполнена успешно, все в порядке. В противном случае вам может потребоваться [выполнить руководство по устранению неполадок](/articles/error-permission-denied-publickey). -Now, to clone the repository, you can run the following command: +Теперь, чтобы клонировать репозиторий, можно выполнить следующую команду: ``` $ git clone ssh://git@ssh.{% data variables.command_line.codeblock %}:443/YOUR-USERNAME/YOUR-REPOSITORY.git ``` -## Enabling SSH connections over HTTPS +## Включение SSH-подключений по протоколу HTTPS -If you are able to SSH into `git@ssh.{% data variables.command_line.backticks %}` over port 443, you can override your SSH settings to force any connection to {% data variables.location.product_location %} to run through that server and port. +Если вы можете подключиться `git@ssh.{% data variables.command_line.backticks %}` по протоколу SSH через порт 443, можно переопределить параметры SSH, чтобы любое подключение к {% data variables.location.product_location %} выполнялось через этот сервер и порт. -To set this in your SSH configuration file, edit the file at `~/.ssh/config`, and add this section: +Чтобы настроить это в файле конфигурации SSH, измените файл по пути `~/.ssh/config` и добавьте следующий раздел: ``` Host {% data variables.command_line.codeblock %} @@ -53,7 +59,7 @@ Port 443 User git ``` -You can test that this works by connecting once more to {% data variables.location.product_location %}: +Вы можете проверить, работает ли это, подключившись еще раз к {% data variables.location.product_location %}: ```shell $ ssh -T git@{% data variables.command_line.codeblock %} @@ -61,18 +67,16 @@ $ ssh -T git@{% data variables.command_line.codeblock %} > provide shell access. ``` -## Updating known hosts +## Обновление известных узлов -The first time you interact with GitHub after switching to port 443, you may get a warning message -that the host wasn't found in `known_hosts`, or that it was found by another name. +При первом взаимодействии с GitHub после переключения на порт 443 может отображаться предупреждающее сообщение о том, что узел не найден в `known_hosts`или что он был найден с другим именем. ```ShellSession > The authenticity of host '[ssh.github.com]:443 ([140.82.112.36]:443)' can't be established. > ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. > This host key is known by the following other names/addresses: > ~/.ssh/known_hosts:32: github.com -> Are you sure you want to continue connecting (yes/no/[fingerprint])? +> Are you sure you want to continue connecting (yes/no/[fingerprint])? ``` -It is safe to answer `yes` to this question, assuming that the SSH fingerprint matches -one of GitHub's published fingerprints. For more information, see "[Github's SSH key fingerprints](/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints)." +Можно с уверенностью ответить "да" на этот вопрос, если отпечаток SSH соответствует одному из опубликованных отпечатков пальцев GitHub. Список отпечатков пальцев см. в разделе "[Отпечатки ключей SSH Github](/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints)". diff --git a/translations/ru-RU/content/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template.md b/translations/ru-RU/content/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template.md index bb6b66291f..842a20e971 100644 --- a/translations/ru-RU/content/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template.md +++ b/translations/ru-RU/content/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template.md @@ -1,6 +1,6 @@ --- -title: Создание codespace на основе шаблона -intro: 'Если вы начинаете новый проект, вы можете создать пространство кода из пустого шаблона или выбрать шаблон, специально разработанный для нужного типа работы.' +title: Creating a codespace from a template +intro: If you're starting a new project, you can create a codespace from a blank template or choose a template specially designed for the type of work you want to do. versions: fpt: '*' ghec: '*' @@ -11,95 +11,92 @@ topics: - Developer shortTitle: Create a codespace from a template miniTocMaxHeadingLevel: 3 -ms.openlocfilehash: 7c6ffdb4099b5d5d6f37ec5ffa7d73f838b36c76 -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 -ms.translationtype: MT -ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148159861' --- -## Сведения о шаблонах для {% data variables.product.prodname_github_codespaces %} -Если вы начинаете новый проект, вы можете быстро приступить к разработке, создав codespace на основе шаблона. Вы сможете работать над проектом в облачной среде разработки, сохранять файлы в облаке и публиковать свои работы в новом удаленном репозитории, которым можно поделиться с другими пользователями или клонировать на локальный компьютер. +## About templates for {% data variables.product.prodname_github_codespaces %} + +If you're starting a new project, you can get started with development work quickly by creating a codespace from a template. You'll be able to work on your project in a cloud-based development environment, save your files in the cloud, and publish your work to a new remote repository that you can share with others or clone to your local machine. {% note %} -**Примечание.** Счета за codespace, созданные на основе шаблона, а не из репозитория, всегда выставляются в вашей личной учетной записи. Дополнительные сведения см. в статье [Сведения о выставлении счетов за {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces). +**Note**: Codespaces created from a template, rather than from a repository, are always billed to your personal account. For more information, see "[About billing for {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces)." {% endnote %} -Вы можете начать с пустого шаблона, выбрать шаблоны, поддерживаемые {% data variables.product.company_short %} для популярных технологий, таких как React или Jupyter Notebook, или запустить пространство кода из любого репозитория шаблонов в {% data variables.product.prodname_dotcom %}. С пустым шаблоном вы начнете с пустого каталога с доступом к облачным вычислительным ресурсам и средствам, языкам и средам выполнения, которые предустановлены с изображением codespace по умолчанию. С помощью других шаблонов вы получите начальные файлы для технологии, с которой вы работаете, а также, как правило, некоторые дополнительные файлы, такие как файл сведений `.gitignore` , файл и файлы конфигурации контейнера разработки, содержащие некоторые пользовательские конфигурации среды. Дополнительные сведения о контейнерах разработки и образе по умолчанию см. в разделе [Общие сведения о контейнерах разработки](/codespaces/setting-up-your-project-for-codespaces/introduction-to-dev-containers). +You can start from a blank template, choose from templates maintained by {% data variables.product.company_short %} for popular technologies such as React or Jupyter Notebook, or launch a codespace from any template repository on {% data variables.product.prodname_dotcom %}. With a blank template, you'll start with an empty directory, with access to cloud-based compute resources and the tools, languages, and runtime environments that come preinstalled with the default codespace image. With other templates, you'll get starter files for the technology you're working with, plus typically some extra files such as a README file, a `.gitignore` file, and dev container configuration files containing some custom environment configuration. For more information on dev containers and the default image, see "[Introduction to dev containers](/codespaces/setting-up-your-project-for-codespaces/introduction-to-dev-containers)." -Например, если создать codespace на основе шаблона React {% data variables.product.company_short %}, вы будете поступать в рабочую область, содержащую файлы шаблонов для простого приложения, например `index.js`, `app.js`и `package.json`. Вскоре после открытия codespace сервер разработки запустится автоматически, и вы сможете просматривать запущенное приложение на простой вкладке браузера в веб-клиенте {% data variables.product.prodname_vscode_shortname %}. +As an example, if you create a codespace from {% data variables.product.company_short %}'s React template, you'll arrive in a workspace containing template files for a simple application, such as `index.js`, `app.js`, and `package.json`. Shortly after the codespace opens, a development server will start up automatically, and you will be able to view the running application in a simple browser tab within the {% data variables.product.prodname_vscode_shortname %} web client. -![Снимок экрана: шаблон React, выполняющийся в codespace](/assets/images/help/codespaces/react-template.png) +![Screenshot of the React template running in a codespace](/assets/images/help/codespaces/react-template.png) -Файлы и конфигурация, включенные в шаблоны, определяются в репозиториях шаблонов. Репозиторий шаблонов клонируется в codespace при создании codespace. После этого ссылка будет разорвана, и пространство кода не будет связано с удаленным репозиторием, пока вы не опубликуете его. +The files and configuration included in templates are defined in template repositories. The template repository is cloned into your codespace when you create the codespace. After that, the link is severed, and your codespace won't be linked to a remote repository until you publish to one. {% tip %} -**Совет:** Чтобы помочь пользователям приступить к работе с платформой, библиотекой или другим проектом, можно настроить репозиторий шаблонов для использования с {% data variables.product.prodname_github_codespaces %}. Дополнительные сведения см. в разделе [Настройка репозитория шаблонов для {% data variables.product.prodname_github_codespaces %}](/codespaces/setting-up-your-project-for-codespaces/setting-up-a-template-repository-for-github-codespaces). +**Tip:** To help people get started with your framework, library, or other project, you can set up a template repository for use with {% data variables.product.prodname_github_codespaces %}. For more information, see "[Setting up a template repository for {% data variables.product.prodname_github_codespaces %}](/codespaces/setting-up-your-project-for-codespaces/setting-up-a-template-repository-for-github-codespaces)." {% endtip %} -## Создание codespace на основе шаблона {% data variables.product.company_short %} +## Creating a codespace from a {% data variables.product.company_short %} template -Шаблоны, поддерживаемые {% data variables.product.company_short %}, включая пустой шаблон, доступны на странице "Ваши пространства кода". +Templates maintained by {% data variables.product.company_short %}, including the blank template, are available from the "Your codespaces" page. -{% data reusables.codespaces.your-codespaces-procedure-step %} {% data reusables.codespaces.view-all-templates-step %} -1. При необходимости, чтобы просмотреть репозиторий шаблонов, содержащий файлы для шаблона, щелкните имя шаблона. +{% data reusables.codespaces.your-codespaces-procedure-step %} +{% data reusables.codespaces.view-all-templates-step %} +1. Optionally, to view the template repository containing the files for a template, click the name of the template. - ![Снимок экрана: раздел "Изучение шаблонов быстрого запуска" с выделенным элементом "React"](/assets/images/help/codespaces/react-template-name.png) + ![Screenshot of the "Explore quick start templates" section, with "React" highlighted](/assets/images/help/codespaces/react-template-name.png) -1. Под шаблоном, который вы хотите запустить, щелкните **Использовать этот шаблон**. +1. Under the template you want to launch, click **Use this template**. - ![Снимок экрана: шаблоны быстрого запуска с выделенной кнопкой "Использовать этот шаблон" в шаблоне React](/assets/images/help/codespaces/react-template-button.png) + ![Screenshot of the quick start templates, with the "Use this template" button highlighted under the React template](/assets/images/help/codespaces/react-template-button.png) {% data reusables.codespaces.template-codespaces-default-editor %} -## Создание codespace из репозитория шаблонов +## Creating a codespace from a template repository -Вы можете создать codespace из любого репозитория шаблонов, а затем опубликовать свою работу в новом репозитории, когда будете готовы. Дополнительные сведения о репозиториях шаблонов см. в разделе [Создание репозитория на основе шаблона](/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template#about-repository-templates). +You can create a codespace from any template repository, then publish your work to a new repository when you are ready. For more information on template repositories, see "[Creating a repository from a template](/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template#about-repository-templates)." -{% data reusables.repositories.navigate-to-repo %} {% data reusables.codespaces.open-template-in-codespace-step %} +{% data reusables.repositories.navigate-to-repo %} +{% data reusables.codespaces.open-template-in-codespace-step %} {% note %} - **Примечание:** Если вы являетесь хранителем репозитория шаблонов и хотите зафиксировать изменения в самом репозитории шаблонов, создайте пространство кода из раскрывающегося списка **{% octicon "code" aria-label="The code icon" %} Code** . Дополнительные сведения см. в разделе [Создание codespace для репозитория](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository#creating-a-codespace-for-a-repository). + **Note:** If you're a maintainer of the template repository, and want to commit changes to the template repository itself, you should create a codespace from the **{% octicon "code" aria-label="The code icon" %} Code** dropdown. For more information, see "[Creating a codespace for a repository](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository#creating-a-codespace-for-a-repository)." {% endnote %} {% data reusables.codespaces.template-codespaces-default-editor %} -## Публикация в репозитории на {% data variables.product.product_name %} +## Publishing to a repository on {% data variables.product.product_name %} {% data reusables.codespaces.about-publishing-templates %} -### Публикация из {% data variables.product.prodname_vscode_shortname %} +### Publishing from {% data variables.product.prodname_vscode_shortname %} {% data reusables.codespaces.publishing-template-codespaces %} -При публикации codespace у вас есть доступ к большему набору параметров для настройки интерфейса {% data variables.product.prodname_github_codespaces %}. Например, вы можете: +When a codespace is published, you have access to a greater range of options to customize your {% data variables.product.prodname_github_codespaces %} experience. For example, you can: -- Измените тип компьютера codespace, чтобы убедиться, что вы используете ресурсы, соответствующие выполняемой работе (см. [раздел Изменение типа компьютера для codespace](/codespaces/customizing-your-codespace/changing-the-machine-type-for-your-codespace)). -- Разрешить {% data variables.product.prodname_dotcom %} автоматически использовать GPG для подписывания фиксаций, которые вы делаете в codespace (см. раздел [Управление проверкой GPG для {% data variables.product.prodname_github_codespaces %}](/codespaces/managing-your-codespaces/managing-gpg-verification-for-github-codespaces)). -- Совместное использование зашифрованных секретов с codespace (см. раздел [Управление зашифрованными секретами для codespaces](/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces)). +- Change the machine type of your codespace to make sure you're using resources appropriate for the work you're doing (see "[Changing the machine type for your codespace](/codespaces/customizing-your-codespace/changing-the-machine-type-for-your-codespace)"). +- Allow {% data variables.product.prodname_dotcom %} to automatically use GPG to sign commits you make in your codespace (see "[Managing GPG verification for {% data variables.product.prodname_github_codespaces %}](/codespaces/managing-your-codespaces/managing-gpg-verification-for-github-codespaces)"). +- Share encrypted secrets with your codespace (see "[Managing encrypted secrets for your codespaces](/codespaces/managing-your-codespaces/managing-encrypted-secrets-for-your-codespaces)"). -### Публикация из {% data variables.product.prodname_dotcom_the_website %} +### Publishing from {% data variables.product.prodname_dotcom_the_website %} -Неопубликованное пространство кода можно опубликовать на странице "Ваши codespaces" на {% data variables.product.prodname_dotcom_the_website %}. Это полезно, если вы хотите опубликовать пространство кода, которое в настоящее время не открыто в браузере. В этом случае работа будет сохранена в репозитории, но не будет связи между существующим пространством кода и новым репозиторием. Однако вы можете перейти к новому репозиторию и создать оттуда codespace, и это пространство кода будет подключено к репозиторию. +You can publish an unpublished codespace from the "Your codespaces" page on {% data variables.product.prodname_dotcom_the_website %}. This is useful if you want to publish a codespace that you don't currently have open in your browser. If you do this, your work will be preserved in a repository, but there won't be a link between your existing codespace and the new repository. However, you can navigate to the new repository and create a codespace from there, and this codespace will be connected to the repository. {% data reusables.codespaces.your-codespaces-procedure-step %} -1. Рядом с неопубликованным пространством кода щелкните многоточие (**...**), а затем выберите **Опубликовать в новом репозитории**. +1. Next to the unpublished codespace, click the ellipsis (**...**), then select **Publish to a new repository**. - ![Снимок экрана: кнопка "Опубликовать в новом репозитории"](/assets/images/help/codespaces/publish-to-new-repository.png) -1. Выберите имя для нового репозитория, задайте для него значение **Общедоступный** или **Частный** и нажмите кнопку **Создать репозиторий**. + ![Screenshot of the "Publish to a new repository" button](/assets/images/help/codespaces/publish-to-new-repository.png) +1. Choose a name for your new repository, set it as **Public** or **Private**, and click **Create repository**. - ![Снимок экрана: раскрывающийся список "Опубликовать в новом репозитории"](/assets/images/help/codespaces/template-new-repository-settings.png) -1. При необходимости, чтобы просмотреть новый репозиторий, щелкните **Просмотреть репозиторий**. + ![Screenshot of the "Publish to a new repository" dropdown](/assets/images/help/codespaces/template-new-repository-settings.png) +1. Optionally, to view the new repository, click **See repository**. -## Дополнительные материалы +## Further reading -- [Создание codespace для репозитория](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository) -- [Жизненный цикл codespace](/codespaces/developing-in-codespaces/the-codespace-lifecycle) -- ["Использование системы управления версиями в codespace](/codespaces/developing-in-codespaces/using-source-control-in-your-codespace)" +- "[Creating a codespace for a repository](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository)" +- "[The codespace lifecycle](/codespaces/getting-started/the-codespace-lifecycle)" +- "[Using source control in your codespace](/codespaces/developing-in-codespaces/using-source-control-in-your-codespace)" \ No newline at end of file diff --git a/translations/ru-RU/content/codespaces/developing-in-codespaces/deleting-a-codespace.md b/translations/ru-RU/content/codespaces/developing-in-codespaces/deleting-a-codespace.md index 9d7f97dd8b..f77bf1a0c4 100644 --- a/translations/ru-RU/content/codespaces/developing-in-codespaces/deleting-a-codespace.md +++ b/translations/ru-RU/content/codespaces/developing-in-codespaces/deleting-a-codespace.md @@ -13,18 +13,18 @@ topics: - Fundamentals - Developer shortTitle: Delete a codespace -ms.openlocfilehash: c9f1f6eb407c985d8981504de28e39a4bf742f7a -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: 24b53cc0cead2b6b15894ada4c799abc8e1c6e7a +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148158664' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188259' --- -Пространство кода можно удалить различными способами: в терминале с помощью {% data variables.product.prodname_cli %}, в {% data variables.product.prodname_vscode %} или в веб-браузере. Используйте вкладки в этой статье, чтобы отобразить инструкции по каждому из этих способов удаления codespace. +Кодовое пространство можно удалить различными способами: в терминале с помощью {% data variables.product.prodname_cli %}, в {% data variables.product.prodname_vscode %} или в веб-браузере. Используйте вкладки в этой статье, чтобы отобразить инструкции для каждого из этих способов удаления codespace. {% note %} -**Примечание**. Вы не можете удалить пространство кода из шлюза JetBrains, клиентского приложения JetBrains или из JupyterLab. +**Примечание**. Вы не можете удалить codespace из шлюза JetBrains, клиентского приложения JetBrains или из JupyterLab. {% endnote %} @@ -135,5 +135,5 @@ gh codespace delete --repo octo-org/octo-repo --days 7 Вы также можете удалить среды codespace вашей организации с помощью REST API. Дополнительные сведения см. в статье [Организации Codespaces](/rest/codespaces/organizations#delete-a-codespace-from-the-organization). ## Дополнительные материалы -- [Жизненный цикл codespace](/codespaces/developing-in-codespaces/the-codespace-lifecycle) -- Настройка [автоматического удаления codespaces](/codespaces/customizing-your-codespace/configuring-automatic-deletion-of-your-codespaces) +- [Жизненный цикл codespace](/codespaces/getting-started/the-codespace-lifecycle) +- [Настройка автоматического удаления codespaces](/codespaces/customizing-your-codespace/configuring-automatic-deletion-of-your-codespaces) diff --git a/translations/ru-RU/content/codespaces/developing-in-codespaces/index.md b/translations/ru-RU/content/codespaces/developing-in-codespaces/index.md index 0a62b50cd7..90d2fbd153 100644 --- a/translations/ru-RU/content/codespaces/developing-in-codespaces/index.md +++ b/translations/ru-RU/content/codespaces/developing-in-codespaces/index.md @@ -22,11 +22,11 @@ children: - /using-github-codespaces-in-visual-studio-code - /using-github-codespaces-in-your-jetbrains-ide - /using-github-codespaces-with-github-cli -ms.openlocfilehash: 166283bd0fbc71b8acc180b20ef597dbc0a50781 -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: 6ace677a68ce7b592ac8ad2a8b83ae4d948b8747 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148159016' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188291' --- diff --git a/translations/ru-RU/content/codespaces/developing-in-codespaces/opening-an-existing-codespace.md b/translations/ru-RU/content/codespaces/developing-in-codespaces/opening-an-existing-codespace.md index 9e2a5e12b1..337d21e2a7 100644 --- a/translations/ru-RU/content/codespaces/developing-in-codespaces/opening-an-existing-codespace.md +++ b/translations/ru-RU/content/codespaces/developing-in-codespaces/opening-an-existing-codespace.md @@ -1,5 +1,5 @@ --- -title: Открытие существующего codespace +title: Открытие существующего пространства кода intro: Вы можете повторно открыть закрытое или остановленное пространство кода и вернуться к работе. versions: fpt: '*' @@ -10,12 +10,12 @@ topics: - Fundamentals - Developer shortTitle: Open an existing codespace -ms.openlocfilehash: e7a35c1a7b3a251094bf69fcd401291b69d03eae -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: b139b7f4e8a696416c97b3c400d09a9f26371b9c +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148159008' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188299' --- {% jetbrains %} @@ -23,30 +23,30 @@ ms.locfileid: '148159008' {% endjetbrains %} -Вы можете повторно открыть любое активное или остановленное codespace в {% data variables.product.prodname_dotcom_the_website %}, в интегрированной среде разработки JetBrains, в {% data variables.product.prodname_vscode %} или с помощью {% data variables.product.prodname_cli %}. Вы не можете повторно открыть пространство codespace, которое было удалено. Дополнительные сведения см. в разделе [Жизненный цикл codespace](/codespaces/developing-in-codespaces/the-codespace-lifecycle). +Вы можете повторно открыть любое из активных или остановленных кодовых пространств в {% data variables.product.prodname_dotcom_the_website %}, в интегрированной среде разработки JetBrains, в {% data variables.product.prodname_vscode %} или с помощью {% data variables.product.prodname_cli %}. Вы не можете повторно открыть пространство codespace, которое было удалено. Дополнительные сведения см. в разделе [Жизненный цикл codespace](/codespaces/getting-started/the-codespace-lifecycle). Вы можете просмотреть все свои codespace на странице "Ваши codespaces" в [github.com/codespaces](https://github.com/codespaces). На этой странице можно выполнить следующие действия: - Откройте, остановите или удалите codespace. -- Узнайте, кто владеет (и может оплачиваться) вашими codespace: ваша личная учетная запись или организации, к которым вы принадлежите. Дополнительные сведения см. в статье [Сведения о выставлении счетов за {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces). -- Создайте новое пространство кода, выбрав один из шаблонов {% data variables.product.company_short %}, или щелкнув **Создать codespace**. Дополнительные сведения см. в разделах [Создание codespace на основе шаблона](/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template) и [Создание пространства кода для репозитория](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository). +- Узнайте, кто владеет (и может выставляться за) ваши codespace: ваша личная учетная запись или организации, к которым вы принадлежите. Дополнительные сведения см. в статье [Сведения о выставлении счетов за {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces). +- Создайте новое пространство кода, выбрав один из шаблонов {% data variables.product.company_short %}, или щелкнув **Создать пространство кода**. Дополнительные сведения см. в [разделах Создание codespace из шаблона](/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template) и [Создание codespace для репозитория](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository). -## Открытие существующего codespace +## Открытие существующего пространства кода {% webui %} {% data reusables.codespaces.your-codespaces-procedure-step %} 1. Чтобы открыть codespace в редакторе по умолчанию, щелкните имя codespace. {% data reusables.codespaces.about-changing-default-editor %} Дополнительные сведения см. в разделе [Настройка редактора по умолчанию для {% data variables.product.prodname_github_codespaces %}](/codespaces/customizing-your-codespace/setting-your-default-editor-for-github-codespaces). - Чтобы открыть codespace в редакторе, отличном от используемого по умолчанию, выполните следующие действия. + Чтобы открыть пространство кода в редакторе, отличном от используемого по умолчанию, выполните следующие действия. - 1. Щелкните многоточие (**...**) справа от пространства кода, которое нужно открыть. + 1. Щелкните многоточие (**...**) справа от codespace, которое нужно открыть. 1. Нажмите кнопку **Открыть в**. 1. Нажмите кнопку **Открыть в приложении**. ![Снимок экрана: диалоговое окно "Открыть в" с выделенным элементом "Открыть в Visual Studio Code"](/assets/images/help/codespaces/open-codespace-in-another-editor.png) - Codespace можно открыть в: + Пространство кода можно открыть в: * Ваш браузер * {% data variables.product.prodname_vscode %} * Шлюз JetBrains @@ -54,7 +54,7 @@ ms.locfileid: '148159008' {% data reusables.codespaces.application-installed-locally %} - Если вы выберете **JupyterLab**, приложение JupyterLab должно быть установлено в codespace. {% data reusables.codespaces.jupyterlab-in-default-image %} + Если выбрать **JupyterLab**, приложение JupyterLab должно быть установлено в codespace. {% data reusables.codespaces.jupyterlab-in-default-image %} {% endwebui %} @@ -66,24 +66,24 @@ ms.locfileid: '148159008' {% endnote %} -1. В классическом приложении {% data variables.product.prodname_vscode_shortname %} откройте палитру команд спомощью команды Shift++P (Mac) или CTRL+SHIFT+P (Windows/Linux). +1. В классическом приложении {% data variables.product.prodname_vscode_shortname %} откройте палитру команд с помощью команды Shift++P (Mac) или CTRL+SHIFT+P (Windows или Linux). 1. Введите Codespaces и выберите одну из следующих команд. - - Чтобы открыть codespace в новом окне {% data variables.product.prodname_vscode_shortname %}, выберите **Codespaces: Открыть Codespace в новом окне**. + - Чтобы открыть codespace в новом окне {% data variables.product.prodname_vscode_shortname %}, выберите **Codespaces: Открыть codespace в новом окне**. - Чтобы открыть codespace в веб-редакторе, выберите **Codespaces: Открыть в браузере**. 1. Щелкните пространство кода, которое нужно открыть. ![Снимок экрана: список codespace в Visual Studio Code](/assets/images/help/codespaces/open-codespace-from-vscode.png) -Вы также можете получить доступ к приведенным выше командам, перейдя в представление удаленного обозревателя в {% data variables.product.prodname_vscode_shortname %} и щелкнув правой кнопкой мыши пространство кода, которое нужно открыть. +Вы также можете получить доступ к командам, перечисленным выше, перейдя в представление Удаленного обозревателя в {% data variables.product.prodname_vscode_shortname %} и щелкнув правой кнопкой мыши пространство кода, которое нужно открыть. -![Снимок экрана: пространство кода, выбранное в удаленном проводнике, с выделенным элементом "Открыть в браузере"](/assets/images/help/codespaces/open-codespace-remote-explorer.png) +![Снимок экрана: пространство кода, выбранное в удаленном обозревателе, с выделенным элементом "Открыть в браузере"](/assets/images/help/codespaces/open-codespace-remote-explorer.png) {% data reusables.codespaces.remote-explorer %} {% endvscode %} {% cli %} 1. В окне терминала введите одну из следующих команд {% data variables.product.prodname_cli %}. - - Чтобы открыть codespace в {% data variables.product.prodname_vscode_shortname %}, введите: + - Чтобы открыть пространство кода в {% data variables.product.prodname_vscode_shortname %}, введите: ```shell{:copy} gh codespace code @@ -113,7 +113,7 @@ ms.locfileid: '148159008' {% endnote %} -1. С помощью клавиш со стрелками перейдите к пространству кода, которое нужно открыть. +1. С помощью клавиш со стрелками перейдите в пространство кода, которое нужно открыть. 1. Чтобы открыть codespace, нажмите клавишу ВВОД. Дополнительные сведения см [`gh codespace code`](https://cli.github.com/manual/gh_codespace_code) . в руководстве по {% data variables.product.prodname_cli %}. diff --git a/translations/ru-RU/content/codespaces/getting-started/deep-dive.md b/translations/ru-RU/content/codespaces/getting-started/deep-dive.md index 09994553d3..c75d1e8e15 100644 --- a/translations/ru-RU/content/codespaces/getting-started/deep-dive.md +++ b/translations/ru-RU/content/codespaces/getting-started/deep-dive.md @@ -9,12 +9,12 @@ versions: type: quick_start topics: - Codespaces -ms.openlocfilehash: 5f97a137ec09191d5cbaa9c10aa280e10f11bbc0 -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: 01e4f3990cc47f61678811f7c4a77b86626fd8a5 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148158648' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188267' --- {% data variables.product.prodname_github_codespaces %} — это современная облачная среда разработки, которая использует контейнер для предоставления популярных языков, инструментов и служебных программ для разработки. {% data variables.product.prodname_github_codespaces %} также можно настроить, что позволяет создать настраиваемую среду разработки для проекта. Настроив пользовательскую среду разработки для проекта, вы получите воспроизводимую конфигурацию кодового пространства для всех пользователей проекта. @@ -161,4 +161,4 @@ Git устанавливается по умолчанию в codespace, поэ - [Включение {% data variables.product.prodname_github_codespaces %} для вашей организации](/codespaces/managing-codespaces-for-your-organization/enabling-github-codespaces-for-your-organization) - [Управление затратами на {% data variables.product.prodname_github_codespaces %} в организации](/codespaces/managing-codespaces-for-your-organization/managing-the-cost-of-github-codespaces-in-your-organization) - [Добавление конфигурации контейнера разработки в репозиторий](/codespaces/setting-up-your-project-for-codespaces/setting-up-your-project-for-codespaces) -- [Жизненный цикл codespace](/codespaces/developing-in-codespaces/the-codespace-lifecycle) +- [Жизненный цикл codespace](/codespaces/getting-started/the-codespace-lifecycle) diff --git a/translations/ru-RU/content/codespaces/getting-started/index.md b/translations/ru-RU/content/codespaces/getting-started/index.md index a3b1ae5993..4ff4872b79 100644 --- a/translations/ru-RU/content/codespaces/getting-started/index.md +++ b/translations/ru-RU/content/codespaces/getting-started/index.md @@ -9,11 +9,11 @@ children: - /quickstart - /the-codespace-lifecycle - /deep-dive -ms.openlocfilehash: e0a845403562bbe046b81e52893a9ff59a1fbf1c -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: e89c26ddd6606192f93449fbc99660afe1fb2506 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148160255' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188275' --- diff --git a/translations/ru-RU/content/codespaces/getting-started/the-codespace-lifecycle.md b/translations/ru-RU/content/codespaces/getting-started/the-codespace-lifecycle.md new file mode 100644 index 0000000000..a47f2cad2e --- /dev/null +++ b/translations/ru-RU/content/codespaces/getting-started/the-codespace-lifecycle.md @@ -0,0 +1,73 @@ +--- +title: Жизненный цикл codespace +intro: 'Вы можете разрабатывать в среде {% data variables.product.prodname_github_codespaces %} и поддерживать данные на протяжении всего жизненного цикла codespace.' +versions: + fpt: '*' + ghec: '*' +type: overview +topics: + - Codespaces + - Developer +redirect_from: + - /codespaces/developing-in-codespaces/codespaces-lifecycle + - /codespaces/developing-in-codespaces/the-codespace-lifecycle +ms.openlocfilehash: 8f223bce2acf2f6dc6200271397c0d70f28aefe4 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 +ms.translationtype: MT +ms.contentlocale: ru-RU +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188383' +--- +## Сведения о жизненном цикле пространства кода + +Жизненный цикл пространства кода начинается при его создании и заканчивается при его удалении. Вы можете отключиться и переподключиться к активному пространству кода, не затрагивая выполняемые процессы. Вы можете остановить и перезапустить пространство кода без потери изменений, внесенных в проект. + +## Создание codespace + +Когда вы собираетесь работать над проектом, вы можете создать новое пространство кода или открыть существующее. Вам может потребоваться создать новое пространство кода из ветви репозитория при каждой разработке в {% data variables.product.prodname_github_codespaces %} или сохранить длительное пространство кода для функции. {% data reusables.codespaces.starting-new-project-template %} Дополнительные сведения см. в [разделах Создание codespace для репозитория](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository) и [Создание codespace на основе шаблона](/codespaces/developing-in-codespaces/creating-a-codespace-from-a-template). + +{% data reusables.codespaces.max-number-codespaces %} Аналогичным образом, если вы достигнете максимального количества активных сред codespace и попытаетесь запустить еще одну среду, вам будет предложено остановить одну из активных сред codespace. + +Если вы решили создавать новое пространство кода каждый раз при работе над проектом, следует регулярно отправлять изменения, чтобы все новые фиксации были включены в {% data variables.product.prodname_dotcom %}. Если вы решили использовать для своего проекта долгосрочное пространство кода, то должны выполнять вытягивание из ветви по умолчанию репозитория каждый раз, когда начинаете работать в пространстве кода, чтобы в вашей среде присутствовали последние фиксации. Этот рабочий процесс очень похож на работу с проектом на локальном компьютере. + +{% data reusables.codespaces.prebuilds-crossreference %} + +## Сохранение изменений в пространстве кода + +При подключении к пространству кода через Интернет для веб редактора автоматически включается автосохранение и настраивается сохранение изменений после задержки. При подключении к пространству кода через {% data variables.product.prodname_vscode %}, работающий на вашем компьютере, необходимо самостоятельно включить автосохранение. Дополнительные сведения см. в разделе [Сохранение и автосохранение](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) документации по {% data variables.product.prodname_vscode %}. + +Ваша работа будет сохранена на виртуальной машине в облаке. Вы можете закрыть и остановить codespace, а затем вернуться к сохраненной работе. Если у вас есть несохраненные изменения, перед выходом редактор предложит сохранить их. Однако при удалении codespace работа также будет удалена. Чтобы сохранить работу, необходимо зафиксировать изменения и отправить их в удаленный репозиторий или опубликовать работу в новом удаленном репозитории, если вы создали codespace на основе шаблона. Дополнительные сведения см. в статье [Использование системы управления версиями в кодовом пространстве](/codespaces/developing-in-codespaces/using-source-control-in-your-codespace). + +## Время ожидания для {% data variables.product.prodname_github_codespaces %} + +Если вы оставите свое пространство кода работающим без взаимодействия или если выйдете из него, не остановив его явно, после некоторого периода бездействия время ожидания истечет, и пространство кода остановит работу. По умолчанию время ожидания пространства кода истекает через 30 минут бездействия, но вы можете настроить другое время ожидания для вновь создаваемых пространств кода. Дополнительные сведения о настройке времени ожидания по умолчанию для пространств кода см. в разделе [Настройка времени ожидания для {% data variables.product.prodname_github_codespaces %}](/codespaces/customizing-your-codespace/setting-your-timeout-period-for-github-codespaces). Дополнительные сведения об остановке пространства кода см. в разделе [Остановка пространства кода](#stopping-a-codespace). + +При истечении времени ожидания пространства кода данные сохраняются с момента последнего сохранения изменений. Дополнительные сведения см. в разделе [Сохранение изменений в пространстве кода](#saving-changes-in-a-codespace). + +## Перестроение пространства кода + +Вы можете перестроить codespace, чтобы реализовать изменения в конфигурации контейнера разработки. В большинстве случаев вместо перестроения пространства кода можно просто создать новое пространство кода. По умолчанию при перестроении codespace {% data variables.product.prodname_github_codespaces %} будет повторно использовать образы из кэша, чтобы ускорить процесс перестроения. Кроме того, можно выполнить полную перестройку, которая очищает кэш и перестраивает контейнер со свежими образами. + +Дополнительные сведения см. в разделах [Общие сведения о контейнерах разработки](/codespaces/setting-up-your-project-for-codespaces/introduction-to-dev-containers#applying-configuration-changes-to-a-codespace) и [Выполнение полной перестройки контейнера](/codespaces/codespaces-reference/performing-a-full-rebuild-of-a-container). + +## Остановка пространства кода + +{% data reusables.codespaces.stopping-a-codespace %} Дополнительные сведения см. в разделе [Остановка и запуск codespace](/codespaces/developing-in-codespaces/stopping-and-starting-a-codespace). + +## Удаление codespace + +Вы можете создать пространство кода для конкретной задачи, а затем безопасно удалить его после отправки изменений в удаленную ветвь. + +Если вы попытаетесь удалить пространство кода с неотправленными фиксациями git, редактор сообщит вам, что имеются изменения, которые не были отправлены в удаленную ветвь. Вы можете отправить все необходимые изменения, а затем удалить пространство кода или продолжить, чтобы удалить пространство кода и все незафиксированные изменения. Вы также можете экспортировать код в новую ветвь, не создавая новое пространство кода. Дополнительные сведения см. в разделе [Экспорт изменений в ветвь](/codespaces/troubleshooting/exporting-changes-to-a-branch). + +Codespace, которые были остановлены и остаются неактивными в течение указанного периода времени, будут удалены автоматически. По умолчанию неактивные codespace удаляются через 30 дней, но вы можете настроить период хранения codespace. Дополнительные сведения см. в статье [Настройка автоматического удаления сред codespace](/codespaces/customizing-your-codespace/configuring-automatic-deletion-of-your-codespaces). + +Если вы создадите codespace, оно будет продолжать начислять расходы на хранение, пока оно не будет удалено, независимо от того, является ли оно активным или остановленным. Дополнительные сведения см. в статье [Сведения о выставлении счетов за {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#billing-for-storage-usage). Удаление codespace не уменьшает текущую оплачиваемую сумму для {% data variables.product.prodname_github_codespaces %}, которая накапливается в течение каждого ежемесячного цикла выставления счетов. Дополнительные сведения см. в разделе [Просмотр данных об использовании {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/viewing-your-github-codespaces-usage). + +Дополнительные сведения об удалении пространства кода см. в разделе [Удаление пространства кода](/codespaces/developing-in-codespaces/deleting-a-codespace). + +## Потеря подключения при использовании {% data variables.product.prodname_github_codespaces %} + +{% data variables.product.prodname_github_codespaces %} — это облачная среда разработки, для которой требуется подключение к Интернету. Если во время работы в пространстве кода произойдет потеря подключения к Интернету, вы не сможете получить доступ к своему пространству кода. Однако все незафиксированные изменения будут сохранены. Когда подключение к Интернету будет восстановлено, вы сможете подключиться к пространству кода в том же состоянии, в котором оно было оставлено. Если ваше подключение к Интернету нестабильно, следует чаще фиксировать и отправлять изменения. + +Если вы знаете, что часто работаете в автономном режиме, вы можете использовать файл `devcontainer.json` с [расширением "Контейнеры разработки"](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) для {% data variables.product.prodname_vscode_shortname %} для сборки и подключения к локальному контейнеру разработки для репозитория. Дополнительные сведения см. в разделе [Разработка в контейнере](https://code.visualstudio.com/docs/remote/containers) в документации по {% data variables.product.prodname_vscode %}. diff --git a/translations/ru-RU/content/codespaces/index.md b/translations/ru-RU/content/codespaces/index.md index 7a9359093f..84bd8761f9 100644 --- a/translations/ru-RU/content/codespaces/index.md +++ b/translations/ru-RU/content/codespaces/index.md @@ -53,11 +53,11 @@ children: - /troubleshooting - /the-githubdev-web-based-editor - /guides -ms.openlocfilehash: 62723c1d4bf684e67420149c96586a91e7583031 -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: 242931386711938cb1eb5e9b84ad66a581ecb1eb +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148160437' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188307' --- diff --git a/translations/ru-RU/content/codespaces/managing-codespaces-for-your-organization/restricting-the-base-image-for-codespaces.md b/translations/ru-RU/content/codespaces/managing-codespaces-for-your-organization/restricting-the-base-image-for-codespaces.md index cc31f4b689..f4dc0c3387 100644 --- a/translations/ru-RU/content/codespaces/managing-codespaces-for-your-organization/restricting-the-base-image-for-codespaces.md +++ b/translations/ru-RU/content/codespaces/managing-codespaces-for-your-organization/restricting-the-base-image-for-codespaces.md @@ -1,7 +1,7 @@ --- title: Ограничение базового образа для codespace shortTitle: Restrict base image -intro: 'Вы можете указать, какие базовые образы можно использовать для новых codespace, созданных в организации.' +intro: 'Вы можете указать, какие базовые образы можно использовать для новых codespace, созданных в вашей организации.' permissions: 'To manage image constraints for an organization''s codespaces, you must be an owner of the organization.' versions: fpt: '*' @@ -9,16 +9,16 @@ versions: type: how_to topics: - Codespaces -ms.openlocfilehash: 1da438a680dd3e60c1deeec46a98fbcf48f84e5b -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: f17bb20aa919ca94cd13e14a6f770cea23042b2b +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148159000' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188283' --- -## Общие сведения +## Обзор -При создании codespace контейнер Docker автоматически создается на удаленной виртуальной машине. Контейнер Docker создается из образа Docker. Образ фактически является шаблоном для контейнеров Docker и определяет многие аспекты результирующей среды, предоставляемой пространством кода. +При создании codespace контейнер Docker автоматически создается на удаленной виртуальной машине. Контейнер Docker создается из образа Docker. Образ фактически является шаблоном для контейнеров Docker и определяет многие аспекты результирующей среды, предоставляемой codespace. Вы можете выбрать образ, который вы хотите использовать для codespaces, указав его в конфигурации контейнера разработки для репозитория. Это можно сделать, например, с помощью `image` свойства в `devcontainer.json` файле . @@ -30,17 +30,17 @@ ms.locfileid: '148159000' Если вы не укажете образ в конфигурации контейнера разработки для репозитория, используется образ по умолчанию. Образ по умолчанию содержит несколько версий среды выполнения для популярных языков и часто используемых средств. Дополнительные сведения см. в статье [Общие сведения о контейнерах разработки](/codespaces/setting-up-your-project-for-codespaces/introduction-to-dev-containers#using-the-default-dev-container-configuration). -Как владелец организации вы можете добавить политику, ограничивающую, какие образы можно использовать для codespace, созданных в вашей организации. +Как владелец организации вы можете добавить политику, чтобы ограничить, какие образы можно использовать для codespace, созданных в вашей организации. Если образ, указанный в конфигурации контейнера разработки, не соответствует одному из разрешенных образов, при попытке создать codespace для репозитория отображается следующее сообщение: -> Не удалось создать Codespace. Базовый образ "DETAILS FROM DEV CONTAINER CONFIGURATION" не допускается на основе политики организации, установленной администратором организации. +> Не удалось создать Codespace. Базовый образ "DETAILS FROM DEV CONTAINER CONFIGURATION" не разрешен на основе политики организации, установленной администратором организации. {% note %} **Примечания** -* Политика базового образа применяется только при создании codespace. В настоящее время он не применяется при перестроении контейнера. Это изменится в будущем выпуске. Дополнительные сведения см. в разделе [Жизненный цикл codespace](/codespaces/developing-in-codespaces/the-codespace-lifecycle#rebuilding-a-codespace). -* Политика базового образа не применяется к образу по умолчанию или образу, который используется для восстановления codespace, если в конфигурации контейнера разработки возникает ошибка, которая предотвращает перестроение контейнера. +* Политика базового образа применяется только при создании codespace. В настоящее время он не применяется при перестроении контейнера. Это изменится в будущем выпуске. Дополнительные сведения см. в разделе [Жизненный цикл codespace](/codespaces/getting-started/the-codespace-lifecycle#rebuilding-a-codespace). +* Политика базового образа не применяется к образу по умолчанию или образу, который используется для восстановления пространства кода, если в конфигурации контейнера разработки возникает ошибка, которая препятствует перестроению контейнера. {% endnote %} @@ -48,7 +48,7 @@ ms.locfileid: '148159000' При создании политики вы выбираете, применяется ли она ко всем репозиториям в организации или только к указанным. Если вы задали политику для всей организации, все политики, заданные для отдельных репозиториев, должны относиться к набору ограничений на уровне организации. Добавление политик делает выбор образа более строгим, а не менее строгим. -Например, можно создать политику всей организации, которая ограничивает базовый образ любым из десяти указанных образов. Затем можно задать политику для репозитория A, которая ограничивает образ только двумя образами, указанными на уровне организации. Указание дополнительных образов для репозитория A не будет иметь никакого эффекта, так как эти образы не указаны в политике уровня организации. Если вы добавляете политику для всей организации, следует задать для нее самый большой выбор образов, которые будут доступны для любого репозитория в вашей организации. Затем вы можете добавить политики для конкретного репозитория, чтобы дополнительно ограничить выбор. +Например, можно создать политику для всей организации, которая ограничивает базовый образ любым из десяти указанных образов. Затем можно задать политику для репозитория A, которая ограничивает образ только двумя образами, указанными на уровне организации. Указание дополнительных образов для репозитория A не будет иметь никакого эффекта, так как эти образы не указаны в политике уровня организации. При добавлении политики для всей организации следует задать для нее самый большой выбор образов, которые будут доступны для любого репозитория в вашей организации. Затем вы можете добавить политики для конкретного репозитория, чтобы дополнительно ограничить выбор. {% data reusables.codespaces.codespaces-org-policies-note %} @@ -61,9 +61,9 @@ ms.locfileid: '148159000' 1. Нажмите {% octicon "pencil" aria-label="The edit icon" %}, чтобы изменить ограничение. - ![Снимок экрана: значок карандаша для редактирования ограничения](/assets/images/help/codespaces/edit-image-constraint.png) + ![Снимок экрана: значок карандаша для изменения ограничения](/assets/images/help/codespaces/edit-image-constraint.png) -1. В поле "Разрешенные значения" введите полный URL-адрес изображения, который вы хотите разрешить. +1. В поле "Допустимые значения" введите полный URL-адрес изображения, которое вы хотите разрешить. ![Снимок экрана: запись в поле "Разрешенные значения"](/assets/images/help/codespaces/image-allowed-values.png) @@ -74,16 +74,16 @@ ms.locfileid: '148159000' {% endnote %} 1. Нажмите кнопку "плюс" ({% octicon "plus" aria-label="The plus icon" %}), чтобы добавить значение. -1. При необходимости повторите два предыдущих шага, чтобы добавить дополнительные URL-адреса изображений. +1. При необходимости повторите предыдущие два шага, чтобы добавить ДОПОЛНИТЕЛЬНЫЕ URL-адреса изображений. {% data reusables.codespaces.codespaces-policy-targets %} -1. Если вы хотите добавить другое ограничение в политику, щелкните **Добавить ограничение** и выберите другое ограничение. Сведения о других ограничениях см. в разделе: +1. Если вы хотите добавить другое ограничение в политику, щелкните **Добавить ограничение** и выберите другое ограничение. Дополнительные сведения о других ограничениях см. в разделе: * "[Ограничение доступа к типам компьютеров](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types)" * ["Ограничение видимости перенаправленных портов](/codespaces/managing-codespaces-for-your-organization/restricting-the-visibility-of-forwarded-ports)" - * ["Ограничение времени ожидания простоя](/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period)" - * ["Ограничение срока хранения для codespaces](/codespaces/managing-codespaces-for-your-organization/restricting-the-retention-period-for-codespaces)" + * [Ограничение времени ожидания простоя](/codespaces/managing-codespaces-for-your-organization/restricting-the-idle-timeout-period) + * [Ограничение срока хранения для codespaces](/codespaces/managing-codespaces-for-your-organization/restricting-the-retention-period-for-codespaces) 1. Завершив добавление ограничений в политику, щелкните **Сохранить**. -Политика применяется, когда кто-либо пытается создать новое пространство кода, которое оплачивается для вашей организации. Ограничение базового образа не влияет на существующие codespace, активные или остановленные. +Политика применяется, когда кто-либо пытается создать новое пространство кода, которое будет оплачиваться для вашей организации. Ограничение базового образа не влияет на существующие codespace, активные или остановленные. ## Изменение политики @@ -92,7 +92,7 @@ ms.locfileid: '148159000' 1. Откройте страницу "Политики codespace". Дополнительные сведения см. в разделе [Добавление политики для определения разрешенных образов](#adding-a-policy-to-define-the-allowed-images). 1. Щелкните имя политики, которую нужно изменить. 1. Щелкните значок карандаша ({% octicon "pencil" aria-label="The edit icon" %}) рядом с ограничением "Базовые изображения". -1. Добавление или удаление URL-адресов изображений. +1. Добавление и удаление URL-адресов изображений. 1. Выберите команду **Сохранить**. ## Удаление политики diff --git a/translations/ru-RU/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository.md b/translations/ru-RU/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository.md index 71e72f15c3..44aa07505c 100644 --- a/translations/ru-RU/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository.md +++ b/translations/ru-RU/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository.md @@ -1,6 +1,6 @@ --- -title: Создание шаблона запроса на вытягивание для репозитория -intro: 'Когда вы добавите шаблон запроса на вытягивание в репозиторий, участники проекта автоматически увидят содержимое шаблона в тексте запроса на вытягивание.' +title: Creating a pull request template for your repository +intro: 'When you add a pull request template to your repository, project contributors will automatically see the template''s contents in the pull request body.' redirect_from: - /articles/creating-a-pull-request-template-for-your-repository - /github/building-a-strong-community/creating-a-pull-request-template-for-your-repository @@ -12,44 +12,41 @@ versions: topics: - Community shortTitle: Create a PR template -ms.openlocfilehash: 2a85c88944f1d46209429846bba1e7a3c930968e -ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a -ms.translationtype: HT -ms.contentlocale: ru-RU -ms.lasthandoff: 09/11/2022 -ms.locfileid: '145092341' --- -Дополнительные сведения см. в статье "[Сведения о шаблонах проблем и запросов на вытягивание](/articles/about-issue-and-pull-request-templates). -Можно создать подкаталог *PULL_REQUEST_TEMPLATE/* в любой из поддерживаемых папок, чтобы он содержал шаблоны для нескольких запросов на вытягивание, и использовать параметр запроса `template`, чтобы указать шаблон, который будет заполнять текст запроса на вытягивание. Дополнительные сведения см. в разделе [Использование параметров запроса для создания запроса на вытягивание](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/using-query-parameters-to-create-a-pull-request). +For more information, see "[About issue and pull request templates](/articles/about-issue-and-pull-request-templates)." + +You can create a *PULL_REQUEST_TEMPLATE/* subdirectory in any of the supported folders to contain multiple pull request templates, and use the `template` query parameter to specify the template that will fill the pull request body. For more information, see "[Using query parameters to create a pull request](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/using-query-parameters-to-create-a-pull-request)." {% ifversion fpt or ghes or ghec %} -Можно создать шаблоны запроса на вытягивание по умолчанию для организации{% ifversion fpt or ghes or ghec %} или личной учетной записи{% endif %}. Дополнительные сведения см. в статье "[Создание файла работоспособности сообщества по умолчанию](/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file)". +You can create default pull request templates for your organization{% ifversion fpt or ghes or ghec %} or personal account{% endif %}. For more information, see "[Creating a default community health file](/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file)." {% endif %} -## Добавление шаблона запроса на вытягивание +## Adding a pull request template -{% data reusables.repositories.navigate-to-repo %} {% data reusables.files.add-file %} -3. В поле имени файла: - - Чтобы сделать шаблон запроса на вытягивание видимым в корневом каталоге репозитория, присвойте шаблону запроса на вытягивание имя `pull_request_template.md`. - ![Имя нового шаблона запроса на вытягивание в корневом каталоге](/assets/images/help/repository/pr-template-file-name.png) - - Чтобы сделать шаблон запроса на вытягивание видимым в каталоге `docs` репозитория, присвойте шаблону запроса на вытягивание имя `docs/pull_request_template.md`. - ![Шаблон нового запроса на вытягивание в каталоге документации](/assets/images/help/repository/pr-template-file-name-docs.png) - - Чтобы сохранить файл в скрытом каталоге, присвойте шаблону запроса на вытягивание имя `.github/pull_request_template.md`. - ![Шаблон нового запроса на вытягивание в скрытом каталоге](/assets/images/help/repository/pr-template-hidden-directory.png) - - Чтобы создать шаблоны для нескольких запросов на вытягивание и использовать параметр запроса `template`, чтобы указать шаблон для заполнения текста проблемы, введите *.github/PULL_REQUEST_TEMPLATE/* , а затем имя шаблона запроса на вытягивание. Например, `.github/PULL_REQUEST_TEMPLATE/pull_request_template.md`. Можно также хранить шаблоны для нескольких запросов на вытягивание в подкаталоге `PULL_REQUEST_TEMPLATE`, в корне или каталогах `docs/`. Дополнительную информацию см. в разделе [Сведения об автоматизации проблем и запросов на вытягивание с параметрами запроса](/articles/about-automation-for-issues-and-pull-requests-with-query-parameters). - ![Шаблон для нескольких новых запросов на вытягивание в скрытом каталоге](/assets/images/help/repository/pr-template-multiple-hidden-directory.png) -4. Добавьте шаблон запроса на вытягивание в текст нового файла. Это может быть: - - [ссылка на связанную проблему](/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests) в репозитории; - - описание изменений, предлагаемых в запросе на вытягивание; - - [@mentions](/articles/basic-writing-and-formatting-syntax/#mentioning-people-and-teams) пользователя или команды, ответственной за проверку предлагаемых изменений. -{% data reusables.files.write_commit_message %} {% data reusables.files.choose_commit_branch %} Шаблоны доступны участникам совместной работы при их слиянии в ветвь репозитория по умолчанию. +{% data reusables.repositories.navigate-to-repo %} +{% data reusables.files.add-file %} +3. In the file name field: + - To make your pull request template visible in the repository's root directory, name the pull request template `pull_request_template.md`. + ![New pull request template name in root directory](/assets/images/help/repository/pr-template-file-name.png) + - To make your pull request template visible in the repository's `docs` directory, name the pull request template `docs/pull_request_template.md`. + ![New pull request template in docs directory](/assets/images/help/repository/pr-template-file-name-docs.png) + - To store your file in a hidden directory, name the pull request template `.github/pull_request_template.md`. + ![New pull request template in hidden directory](/assets/images/help/repository/pr-template-hidden-directory.png) + - To create multiple pull request templates and use the `template` query parameter to specify a template to fill the pull request body, type *.github/PULL_REQUEST_TEMPLATE/*, then the name of your pull request template. For example, `.github/PULL_REQUEST_TEMPLATE/pull_request_template.md`. You can also store multiple pull request templates in a `PULL_REQUEST_TEMPLATE` subdirectory within the root or `docs/` directories. For more information, see "[Using query parameters to create a pull request](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/using-query-parameters-to-create-a-pull-request)." + ![New multiple pull request template in hidden directory](/assets/images/help/repository/pr-template-multiple-hidden-directory.png) +4. In the body of the new file, add your pull request template. This could include: + - A [reference to a related issue](/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests) in your repository. + - A description of the changes proposed in the pull request. + - [@mentions](/articles/basic-writing-and-formatting-syntax/#mentioning-people-and-teams) of the person or team responsible for reviewing proposed changes. +{% data reusables.files.write_commit_message %} +{% data reusables.files.choose_commit_branch %} Templates are available to collaborators when they are merged into the repository's default branch. {% data reusables.files.propose_new_file %} -## Дополнительные материалы +## Further reading -- [Сведения о шаблонах проблем и запросов на вытягивание](/articles/about-issue-and-pull-request-templates) -- [Сведения об автоматизации проблем и запросов на вытягивание с параметрами запроса](/articles/about-automation-for-issues-and-pull-requests-with-query-parameters) -- [Создание запроса на вытягивание](/articles/creating-a-pull-request) +- "[About issue and pull request templates](/articles/about-issue-and-pull-request-templates)" +- "[About automation for issues and pull requests with query parameters](/articles/about-automation-for-issues-and-pull-requests-with-query-parameters)" +- "[Creating a pull request](/articles/creating-a-pull-request)" diff --git a/translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/changing-the-remote-url-for-a-repository-from-github-desktop.md b/translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/changing-the-remote-url-for-a-repository-from-github-desktop.md new file mode 100644 index 0000000000..25d523d878 --- /dev/null +++ b/translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/changing-the-remote-url-for-a-repository-from-github-desktop.md @@ -0,0 +1,33 @@ +--- +title: Изменение удаленного URL-адреса репозитория из GitHub Desktop +intro: 'Вы можете изменить удаленный URL-адрес репозитория, с которым вы работаете в {% data variables.product.prodname_desktop %}. Это можно сделать, если репозиторий переименован или имя пользователя или организация, принадлежащие репозиторию, изменились.' +redirect_from: + - /desktop/contributing-to-projects/changing-a-remotes-url-from-github-desktop + - /desktop/contributing-to-projects/changing-a-remote-s-url-from-github-desktop + - /desktop/contributing-and-collaborating-using-github-desktop/changing-a-remotes-url-from-github-desktop + - /desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/changing-a-remotes-url-from-github-desktop +versions: + fpt: '*' +shortTitle: Change the remote URL for a repository +ms.openlocfilehash: e37c4878c13a9de95520f8e9c1edc9bf6416d46a +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 +ms.translationtype: MT +ms.contentlocale: ru-RU +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188379' +--- +{% mac %} + +{% data reusables.desktop.mac-repository-settings-menu %} +2. Щелкните **Удаленный** и в разделе **Главный удаленный репозиторий** введите нужный URL-адрес. +![Поле "Главный удаленный репозиторий"](/assets/images/help/desktop/repository-settings-remote.png) {% data reusables.desktop.repository-settings-save %} + +{% endmac %} + +{% windows %} + +{% data reusables.desktop.windows-repository-settings-menu %} +2. Щелкните **Удаленный** и в разделе **Главный удаленный репозиторий** введите нужный URL-адрес. +![Поле "Главный удаленный репозиторий"](/assets/images/help/desktop/repository-settings-remote.png) {% data reusables.desktop.repository-settings-save %} + +{% endwindows %} diff --git a/translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/index.md b/translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/index.md index 3eb0f7b633..e182e2f441 100644 --- a/translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/index.md +++ b/translations/ru-RU/content/desktop/contributing-and-collaborating-using-github-desktop/working-with-your-remote-repository-on-github-or-github-enterprise/index.md @@ -12,11 +12,11 @@ children: - /configuring-notifications-in-github-desktop - /changing-the-remote-url-for-a-repository-from-github-desktop shortTitle: Work with your remote repo -ms.openlocfilehash: 60c2f41546ff085ea8f8d56142da6a3c7a81ebae -ms.sourcegitcommit: fb047f9450b41b24afc43d9512a5db2a2b750a2a -ms.translationtype: HT +ms.openlocfilehash: f7e9f1ab5f73aaad29208db01c62815d7a20ba03 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 +ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 09/11/2022 -ms.locfileid: '145117475' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188382' --- diff --git a/translations/ru-RU/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/using-github-codespaces-with-github-classroom.md b/translations/ru-RU/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/using-github-codespaces-with-github-classroom.md index ec2c7c9820..549f44ba2c 100644 --- a/translations/ru-RU/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/using-github-codespaces-with-github-classroom.md +++ b/translations/ru-RU/content/education/manage-coursework-with-github-classroom/integrate-github-classroom-with-an-ide/using-github-codespaces-with-github-classroom.md @@ -6,22 +6,22 @@ intro: '{% data variables.product.prodname_github_codespaces %} можно ис versions: fpt: '*' permissions: 'Organization owners who are admins for a classroom can enable {% data variables.product.prodname_github_codespaces %} for their organization and integrate {% data variables.product.prodname_github_codespaces %} as the supported editor for an assignment. {% data reusables.classroom.classroom-admins-link %}' -ms.openlocfilehash: 6794d20b9ea0153b3baf4bee1a08c68b2ba17456 -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: 832ab470d13cc741bc4a71e77840c99da5ff3de6 +ms.sourcegitcommit: a35d85531445980b5f04d3fc70180a29dad37f89 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: '148158880' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148189916' --- ## О {% data variables.product.prodname_github_codespaces %} -{% data variables.product.prodname_github_codespaces %} — это современная облачная среда разработки, которая использует контейнер для предоставления популярных языков, инструментов и служебных программ для разработки. {% data variables.product.prodname_github_codespaces %} также можно настроить, что позволяет создать настраиваемую среду разработки, которая будет одинаковой для всех пользователей проекта. Дополнительные сведения см. в статье "[Обзор {% data variables.product.prodname_github_codespaces %}](/codespaces/overview)". +{% data variables.product.prodname_github_codespaces %} — это современная облачная среда разработки, которая использует контейнер для предоставления популярных языков, инструментов и служебных программ для разработки. {% data variables.product.prodname_github_codespaces %} также можно настроить, что позволяет создать настраиваемую среду разработки, одинаковую для всех пользователей проекта. Дополнительные сведения см. в статье "[Обзор {% data variables.product.prodname_github_codespaces %}](/codespaces/overview)". После включения {% data variables.product.prodname_github_codespaces %} в организации или на предприятии пользователи могут создать codespace из любой ветви или фиксации в организации или корпоративном репозитории и начать разработку с использованием облачных вычислительных ресурсов. Вы можете подключиться к пространству кода через браузер или в локальной среде Visual Studio Code. {% data reusables.codespaces.links-to-get-started %} -Назначение {% data variables.product.prodname_github_codespaces %} в качестве предпочтительного редактора для задания в GitHub Classroom полезно как для учащихся, так и для преподавателей. {% data variables.product.prodname_github_codespaces %} является хорошим вариантом для учащихся, использующих устройства с кредитом или без доступа к локальной настройке интегрированной среды разработки, так как каждое пространство кода основано на облаке и не требует локальной настройки. Учащиеся могут запустить пространство кода для репозитория заданий в Visual Studio Code, используя любой браузер, и начать разработку без дополнительной настройки. +Назначение {% data variables.product.prodname_github_codespaces %} в качестве предпочтительного редактора для заданий в GitHub Classroom полезно как для учащихся, так и для преподавателей. {% data variables.product.prodname_github_codespaces %} является хорошим вариантом для учащихся, использующих заемные устройства или не имеющих доступа к локальной настройке интегрированной среды разработки, так как каждое пространство кода основано на облаке и не требует локальной настройки. Учащиеся могут запустить пространство кода для репозитория заданий в Visual Studio Code, используя любой браузер, и начать разработку без дополнительной настройки. Для заданий со сложными средами преподаватели могут настроить конфигурацию контейнера разработки для конкретных пространств кода в репозитории. В этом случае при создании пространства кода учащийся автоматически получит среду разработки, настроенную преподавателем. Дополнительные сведения о контейнерах разработки см. в разделе [Общие сведения о контейнерах разработки](/codespaces/setting-up-your-project-for-codespaces/introduction-to-dev-containers). @@ -41,7 +41,7 @@ ms.locfileid: '148158880' ## Сведения о преимуществах {% data variables.product.prodname_codespaces %} Education для подтвержденных преподавателей -Преимущество для образования {% data variables.product.prodname_codespaces %} предоставляет проверенным преподавателям бесплатное ежемесячное пособие в размере {% data variables.product.prodname_github_codespaces %} часов для использования в {% data variables.product.prodname_classroom %}. Этого пособия, по усредненным оценкам, достаточно для работы класса с 50 учащимися и 5 заданиями в месяц на компьютере с 2 ядрами и хранения 1 пространства кода для каждого учащегося. +Преимущество для образования {% data variables.product.prodname_codespaces %} предоставляет проверенным преподавателям бесплатную ежемесячную надбавку в размере {% data variables.product.prodname_github_codespaces %} часов для использования в {% data variables.product.prodname_classroom %}. Этого пособия, по усредненным оценкам, достаточно для работы класса с 50 учащимися и 5 заданиями в месяц на компьютере с 2 ядрами и хранения 1 пространства кода для каждого учащегося. {% data reusables.classroom.free-limited-codespaces-for-verified-teachers-beta-note %} @@ -49,13 +49,13 @@ ms.locfileid: '148158880' Получив сообщение о том, что вы стали подтвержденным преподавателем, посетите [{% data variables.product.prodname_global_campus %} для преподавателей](https://education.github.com/globalcampus/teacher) и обновите GitHub Team для организации. Дополнительные сведения см. в разделе [Продукты GitHub](/get-started/learning-about-github/githubs-products#github-team). -Если вы имеете право на {% data variables.product.prodname_codespaces %} Для образования, при включении {% data variables.product.prodname_github_codespaces %} в {% data variables.product.prodname_classroom %} для вашей организации GitHub автоматически добавляет политику Codespace, ограничивающую типы компьютеров для всех codespace в организации до 2 основных компьютеров. Это поможет вам максимально эффективно использовать бесплатные {% data variables.product.prodname_github_codespaces %}. Но вы можете свободно изменять или удалять такие политики в параметрах организации. Дополнительные сведения см. в разделе [Ограничение доступа по типам компьютеров](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types). +Если вы имеете право на {% data variables.product.prodname_codespaces %} Для образования, при включении {% data variables.product.prodname_github_codespaces %} в {% data variables.product.prodname_classroom %} для вашей организации GitHub автоматически добавляет политику Codespace, ограничивающую типы компьютеров для всех codespace в организации до 2 основных компьютеров. Это позволяет максимально эффективно использовать бесплатные {% data variables.product.prodname_github_codespaces %}. Но вы можете свободно изменять или удалять такие политики в параметрах организации. Дополнительные сведения см. в разделе [Ограничение доступа по типам компьютеров](/codespaces/managing-codespaces-for-your-organization/restricting-access-to-machine-types). -Когда преимущество для образования {% data variables.product.prodname_codespaces %} выходит из бета-версии, если ваша организация превысит свое бесплатное пособие на использование {% data variables.product.prodname_github_codespaces %}, вашей организации будет выставлен счет за дополнительное использование. Дополнительные сведения см. в статье [Сведения о выставлении счетов за {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces). +Когда преимущество для образования {% data variables.product.prodname_codespaces %} выходит из бета-версии, если ваша организация превысит бесплатную квоту на использование {% data variables.product.prodname_github_codespaces %}, вашей организации будет выставлен счет за дополнительное использование. Дополнительные сведения см. в статье [Сведения о выставлении счетов за {% data variables.product.prodname_github_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces). ## Включение {% data variables.product.prodname_codespaces %} для организации -{% data variables.product.prodname_github_codespaces %} доступно для использования с {% data variables.product.prodname_classroom %} для организаций, использующих {% data variables.product.prodname_team %}. Если вы имеете право на {% data variables.product.prodname_codespaces %} Для образования, необходимо включить {% data variables.product.prodname_github_codespaces %} через {% data variables.product.prodname_classroom %}, а не включать его непосредственно в параметрах организации. В противном случае плата за использование {% data variables.product.prodname_github_codespaces %} будет выставляться непосредственно вашей организации. +{% data variables.product.prodname_github_codespaces %} доступен для использования с {% data variables.product.prodname_classroom %} для организаций, использующих {% data variables.product.prodname_team %}. Если вы имеете право на получение преимущества для образования {% data variables.product.prodname_codespaces %}, необходимо включить {% data variables.product.prodname_github_codespaces %} с помощью {% data variables.product.prodname_classroom %}, а не включать его непосредственно в параметрах организации. В противном случае вашей организации будет выставляться счет напрямую за все использование {% data variables.product.prodname_github_codespaces %}. ### Включение Codespaces для организации при создании новой аудитории {% data reusables.classroom.sign-into-github-classroom %} @@ -63,7 +63,7 @@ ms.locfileid: '148158880' ![Кнопка "Создать аудиторию"](/assets/images/help/classroom/click-new-classroom-button.png) -1. В списке организаций выберите организацию, которую хотите использовать для своей аудитории. Организации, имеющие право на {% data variables.product.prodname_github_codespaces %}, получат заметку о том, что они имеют право. При необходимости создайте новую организацию. Дополнительные сведения см. в статье [Создание новой организации с нуля](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch). +1. В списке организаций выберите организацию, которую хотите использовать для своей аудитории. Организации, которые имеют право на {% data variables.product.prodname_github_codespaces %}, будут иметь примечание, показывающее, что они имеют право. При необходимости создайте новую организацию. Дополнительные сведения см. в статье [Создание новой организации с нуля](/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch). ![Выбор организации для аудитории с правом на использование Codespaces](/assets/images/help/classroom/org-view-codespaces-eligibility.png) @@ -80,10 +80,10 @@ ms.locfileid: '148158880' ![Настройка Codespaces для организации в параметрах существующей аудитории](/assets/images/help/classroom/classroom-settings-enable-codespaces-button.png) -Вы можете использовать те же методы, что и выше, чтобы отключить {% data variables.product.prodname_github_codespaces %} для вашей организации. Обратите внимание, что {% data variables.product.prodname_github_codespaces %} будет отключен для всех пользователей и репозиториев в организации. +Вы можете использовать те же методы, что и выше, чтобы отключить {% data variables.product.prodname_github_codespaces %} для вашей организации. Обратите внимание, что это приведет к отключению {% data variables.product.prodname_github_codespaces %} для всех пользователей и репозиториев в организации. ## Настройка назначения для использования {% data variables.product.prodname_codespaces %} -Чтобы сделать {% data variables.product.prodname_github_codespaces %} доступным учащимся для задания, можно выбрать {% data variables.product.prodname_github_codespaces %} в качестве поддерживаемого редактора для задания. При создании нового назначения на странице "Добавление начального кода и выбор необязательной интегрированной среды разработки в Интернете" в разделе "Добавление поддерживаемого редактора" выберите **{% data variables.product.prodname_github_codespaces %}** в раскрывающемся меню. +Чтобы сделать {% data variables.product.prodname_github_codespaces %} доступным для задания, можно выбрать {% data variables.product.prodname_github_codespaces %} в качестве поддерживаемого редактора для задания. При создании нового назначения на странице "Добавление начального кода и выбор необязательной интегрированной среды разработки в Интернете" в разделе "Добавление поддерживаемого редактора" выберите **{% data variables.product.prodname_github_codespaces %}** в раскрывающемся меню. ![Выбор Codespaces в качестве поддерживаемого редактора для назначения](/assets/images/help/classroom/select-supported-editor-including-codespaces.png) @@ -95,7 +95,7 @@ ms.locfileid: '148158880' ![Снимок экрана: примечание Codespaces в файле README в репозитории задания для учащихся](/assets/images/help/classroom/student-codespaces-readme-link.png) -Учащиеся могут запустить новое или существующее codespace, нажав кнопку **Открыть в GitHub Codespace** в файле сведений или нажав кнопку **{% octicon "code" aria-label="The code icon" %} Code** на главной странице репозитория заданий, а затем выбрав вкладку **Codespaces** . На вкладке **Codespaces** можно выбрать существующее codespace или создать новое. Дополнительные сведения см. в разделе [Создание пространства кода для репозитория](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository#creating-a-codespace-for-a-repository). +Учащиеся могут запустить новое или существующее codespace, нажав кнопку **Открыть в GitHub Codespace** в файле README или нажав кнопку **{% octicon "code" aria-label="The code icon" %} Code** на главной странице репозитория заданий, а затем выбрав вкладку **Codespaces** . На вкладке **Codespaces** можно выбрать существующее codespace или создать новое. Дополнительные сведения см. в разделе [Создание codespace для репозитория](/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository#creating-a-codespace-for-a-repository). ![Запуск нового пространства кода в репозитории назначений](/assets/images/help/classroom/student-launch-new-codespace.png) @@ -103,4 +103,4 @@ ms.locfileid: '148158880' ![Общие сведения о назначении преподавателей для пространств кода учащихся](/assets/images/help/classroom/teacher-assignment-view-with-codespaces.png) -При подключении к пространству кода в браузере автоматически включается автосохранение. Если вы хотите сохранить внесенные изменения в репозитории, необходимо зафиксировать эти изменения и отправить их в ветвь удаленного репозитория. По умолчанию, если пространство кода не используется в течение 30 минут, истекает время ожидания и работа пространства кода прекращается. Все ваши данные будут сохранены по состоянию на момент последнего изменения. Дополнительные сведения о жизненном цикле codespace см. в разделе [Жизненный цикл codespace](/codespaces/developing-in-codespaces/the-codespace-lifecycle). +При подключении к пространству кода в браузере автоматически включается автосохранение. Если вы хотите сохранить внесенные изменения в репозитории, необходимо зафиксировать эти изменения и отправить их в ветвь удаленного репозитория. По умолчанию, если пространство кода не используется в течение 30 минут, истекает время ожидания и работа пространства кода прекращается. Все ваши данные будут сохранены по состоянию на момент последнего изменения. Дополнительные сведения о жизненном цикле codespace см. в разделе [Жизненный цикл codespace](/codespaces/getting-started/the-codespace-lifecycle). diff --git a/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md b/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md new file mode 100644 index 0000000000..38e2da581b --- /dev/null +++ b/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork.md @@ -0,0 +1,43 @@ +--- +title: Настройка удаленного репозитория для вилки +intro: 'Необходимо настроить удаленный репозиторий, указывающий на вышестоящий репозиторий в Git, чтобы [синхронизировать изменения, внесенные в вилку](/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) с исходным репозиторием. Это также позволяет синхронизировать изменения, внесенные в исходный репозиторий с созданной вилкой.' +redirect_from: + - /github/collaborating-with-issues-and-pull-requests/working-with-forks/configuring-a-remote-for-a-fork + - /articles/configuring-a-remote-for-a-fork + - /github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork + - /github/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-for-a-fork + - /github/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork +versions: + fpt: '*' + ghes: '*' + ghae: '*' + ghec: '*' +topics: + - Pull requests +shortTitle: Configure a remote repository +ms.openlocfilehash: 495d3c825356fd69c9130f8a122aa7a8702ff317 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 +ms.translationtype: MT +ms.contentlocale: ru-RU +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188387' +--- +{% data reusables.command_line.open_the_multi_os_terminal %} +2. Получите текущий настроенный удаленный репозиторий для вилки. + ```shell + $ git remote -v + > origin https://{% data variables.command_line.codeblock %}/YOUR_USERNAME/YOUR_FORK.git (fetch) + > origin https://{% data variables.command_line.codeblock %}/YOUR_USERNAME/YOUR_FORK.git (push) + ``` +3. Укажите новый удаленный *вышестоящий* репозиторий, который будет синхронизирован с вилкой. + ```shell + $ git remote add upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git + ``` +4. Проверьте новый вышестоящий репозиторий, указанный для вилки. + ```shell + $ git remote -v + > origin https://{% data variables.command_line.codeblock %}/YOUR_USERNAME/YOUR_FORK.git (fetch) + > origin https://{% data variables.command_line.codeblock %}/YOUR_USERNAME/YOUR_FORK.git (push) + > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (fetch) + > upstream https://{% data variables.command_line.codeblock %}/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git (push) + ``` diff --git a/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/index.md b/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/index.md index 926ee283df..f5465eb173 100644 --- a/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/index.md +++ b/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/index.md @@ -18,11 +18,11 @@ children: - /syncing-a-fork - /allowing-changes-to-a-pull-request-branch-created-from-a-fork - /what-happens-to-forks-when-a-repository-is-deleted-or-changes-visibility -ms.openlocfilehash: 79d8346fdd63366e5987def43164932503104332 -ms.sourcegitcommit: 1309b46201604c190c63bfee47dce559003899bf -ms.translationtype: HT +ms.openlocfilehash: 0133f7759cb9040a5acb97a7b08c312a55079bda +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 +ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 09/10/2022 -ms.locfileid: '146683664' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188386' --- diff --git a/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork.md b/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork.md index c9b479247e..5b41e411e5 100644 --- a/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork.md +++ b/translations/ru-RU/content/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork.md @@ -1,6 +1,6 @@ --- -title: Syncing a fork -intro: Sync a fork of a repository to keep it up-to-date with the upstream repository. +title: Синхронизация вилки +intro: 'Синхронизируйте вилку репозитория, чтобы гарантировать его актуальность в вышестоящем репозитории.' redirect_from: - /github/collaborating-with-issues-and-pull-requests/working-with-forks/syncing-a-fork - /articles/syncing-a-fork @@ -19,44 +19,48 @@ versions: topics: - Pull requests permissions: People with write access for a forked repository can sync the fork to the upstream repository. +ms.openlocfilehash: 85b149e26cb65a428d7e9b66aea99d6b62430ae0 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 +ms.translationtype: MT +ms.contentlocale: ru-RU +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148188331' --- - -## Syncing a fork branch from the web UI +## Синхронизация ветви вилки из пользовательского веб-интерфейса {% ifversion syncing-fork-web-ui %} -1. On {% data variables.product.product_name %}, navigate to the main page of the forked repository that you want to sync with the upstream repository. -2. Select the **Sync fork** dropdown. - !["Sync fork" dropdown emphasized](/assets/images/help/repository/sync-fork-dropdown.png) -3. Review the details about the commits from the upstream repository, then click **Update branch**. - ![Sync fork modal with "Update branch" button emphasized](/assets/images/help/repository/update-branch-button.png) -{% else %} -1. On {% data variables.product.product_name %}, navigate to the main page of the forked repository that you want to sync with the upstream repository. -2. Select the **Fetch upstream** dropdown. - !["Fetch upstream" drop-down](/assets/images/help/repository/fetch-upstream-drop-down.png) -3. Review the details about the commits from the upstream repository, then click **Fetch and merge**. - !["Fetch and merge" button](/assets/images/help/repository/fetch-and-merge-button.png){% endif %} +1. На {% data variables.product.product_name %} перейдите на главную страницу разветвленного репозитория, который требуется синхронизировать с вышестоящим репозиторием. +2. Выберите раскрывающийся список **Синхронизировать вилку**. + ![Выделенный раскрывающийся список "Синхронизировать вилку"](/assets/images/help/repository/sync-fork-dropdown.png) +3. Просмотрите сведения о фиксациях из вышестоящего репозитория, а затем щелкните **Обновить ветвь**. + ![Модальное окно "Синхронизация вилки" с выделенной кнопкой "Обновить ветвь"](/assets/images/help/repository/update-branch-button.png) {% else %} +1. На {% data variables.product.product_name %} перейдите на главную страницу разветвленного репозитория, который требуется синхронизировать с вышестоящим репозиторием. +2. Выберите раскрывающийся список **Получить вышестоящий репозиторий**. + ![Раскрывающийся список "Получить вышестоящий репозиторий"](/assets/images/help/repository/fetch-upstream-drop-down.png) +3. Просмотрите сведения о фиксациях из вышестоящего репозитория, а затем щелкните **Получить и объединить**. + ![Кнопка "Получить и объединить"](/assets/images/help/repository/fetch-and-merge-button.png){% endif %} -If the changes from the upstream repository cause conflicts, {% data variables.product.company_short %} will prompt you to create a pull request to resolve the conflicts. +Если изменения из вышестоящего репозитория вызывают конфликты, {% data variables.product.company_short %} предложит создать запрос на вытягивание для разрешения конфликтов. -## Syncing a fork branch with the {% data variables.product.prodname_cli %} +## Синхронизация ветви вилки с помощью {% data variables.product.prodname_cli %} -{% data reusables.cli.about-cli %} To learn more about {% data variables.product.prodname_cli %}, see "[About {% data variables.product.prodname_cli %}](/github-cli/github-cli/about-github-cli)." +{% data reusables.cli.about-cli %} Дополнительные сведения о {% data variables.product.prodname_cli %} см. в статье ["Общие сведения о {% data variables.product.prodname_cli %}"](/github-cli/github-cli/about-github-cli). -To update the remote fork from its parent, use the `gh repo sync -b BRANCHNAME` subcommand and supply your fork and branch name as arguments. +Чтобы обновить удаленную вилку из родительского элемента, используйте подкоманду `gh repo sync -b BRANCHNAME` и укажите имена вилки и ветви в качестве аргументов. ```shell $ gh repo sync owner/cli-fork -b BRANCH_NAME ``` -If the changes from the upstream repository cause conflict then the {% data variables.product.prodname_cli %} can't sync. You can set the `-force` flag to overwrite the destination branch. +Если изменения из вышестоящего репозитория вызывают конфликт, то {% data variables.product.prodname_cli %} не сможет синхронизироваться. Вы можете задать флаг `-force` для перезаписи целевой ветви. -## Syncing a fork branch from the command line +## Синхронизация ветви вилки из командной строки -Before you can sync your fork with an upstream repository, you must configure a remote that points to the upstream repository in Git. For more information, see "[Configuring a remote repository for a fork](/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork)." +Прежде чем синхронизировать вилку с вышестоящим репозиторием, необходимо настроить удаленный репозиторий, указывающий на вышестоящий репозиторий в Git. Дополнительные сведения см. в разделе [Настройка удаленного репозитория для вилки](/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-repository-for-a-fork). {% data reusables.command_line.open_the_multi_os_terminal %} -2. Change the current working directory to your local project. -3. Fetch the branches and their respective commits from the upstream repository. Commits to `BRANCHNAME` will be stored in the local branch `upstream/BRANCHNAME`. +2. Измените текущий рабочий каталог на локальный проект. +3. Получение ветвей и их соответствующих фиксаций из вышестоящего репозитория. Фиксации в `BRANCHNAME` будут храниться в локальной ветви `upstream/BRANCHNAME`. ```shell $ git fetch upstream @@ -68,14 +72,14 @@ Before you can sync your fork with an upstream repository, you must configure a > * [new branch] main -> upstream/main ``` -4. Check out your fork's local default branch - in this case, we use `main`. +4. Извлеките локальную ветвь вилки по умолчанию — в этом примере мы используем `main`. ```shell $ git checkout main > Switched to branch 'main' ``` -5. Merge the changes from the upstream default branch - in this case, `upstream/main` - into your local default branch. This brings your fork's default branch into sync with the upstream repository, without losing your local changes. +5. Объедините изменения из вышестоящей ветви по умолчанию ( в данном случае `upstream/main`) с локальной ветвью по умолчанию. Это приведет к синхронизации ветви вилки по умолчанию с вышестоящим репозиторием без потери локальных изменений. ```shell $ git merge upstream/main @@ -88,7 +92,7 @@ Before you can sync your fork with an upstream repository, you must configure a > create mode 100644 README.md ``` - If your local branch didn't have any unique commits, Git will perform a fast-forward. For more information, see [Basic Branching and Merging](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging) in the Git documentation. + Если локальная ветвь не имеет уникальных фиксаций, Git выполнит быстрое перемещение вперед. Дополнительные сведения см. в статье [Базовое ветвление и слияние](https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging) в документации по Git. ```shell $ git merge upstream/main > Updating 34e91da..16c56ad @@ -96,10 +100,10 @@ Before you can sync your fork with an upstream repository, you must configure a > README.md | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) ``` - If your local branch had unique commits, you may need to resolve conflicts. For more information, see "[Addressing merge conflicts](/github/collaborating-with-pull-requests/addressing-merge-conflicts)." + Если локальная ветвь имела уникальные фиксации, возможно, потребуется устранить конфликты. Дополнительные сведения см. в разделе [Устранение конфликтов слияния](/github/collaborating-with-pull-requests/addressing-merge-conflicts). {% tip %} -**Tip**: Syncing your fork only updates your local copy of the repository. To update your fork on {% data variables.location.product_location %}, you must [push your changes](/github/getting-started-with-github/pushing-commits-to-a-remote-repository/). +**Совет.** При синхронизации вилки обновляется только локальная копия репозитория. Чтобы обновить вилку на {% data variables.location.product_location %}, необходимо [отправить изменения](/github/getting-started-with-github/pushing-commits-to-a-remote-repository/). {% endtip %} diff --git a/translations/ru-RU/content/rest/overview/libraries.md b/translations/ru-RU/content/rest/overview/libraries.md index ebabc4a962..cd3bdb7fb6 100644 --- a/translations/ru-RU/content/rest/overview/libraries.md +++ b/translations/ru-RU/content/rest/overview/libraries.md @@ -11,22 +11,21 @@ versions: ghec: '*' topics: - API -ms.openlocfilehash: 4560ae5e63f8a607f068bb24e84f1a014f44885c -ms.sourcegitcommit: 82b1242de02ecc4bdec02a5b6d11568fb2deb1aa +ms.openlocfilehash: ab880cef09b936bb573d783373f048395d0a2f58 +ms.sourcegitcommit: 16548aa24259e37cc0ac4900ca8fefc46dc84cdb ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/21/2022 -ms.locfileid: '148179739' +ms.lasthandoff: 12/01/2022 +ms.locfileid: '148190064' --- -![The Gundamcat](/assets/images/gundamcat.png) +![Гандамкат](/assets/images/gundamcat.png) ## Octokit имеет множество вариантов Воспользуйтесь официальной библиотекой Octokit или выберите любую доступную стороннюю библиотеку. -- [Octokit.py](https://github.com/khornberg/octokit.py) → **Python** - **Ruby** → [octokit.rb](https://github.com/octokit/octokit.rb) -- **octokit.net → .NET** [](https://github.com/octokit/octokit.net) +- [octokit.net](https://github.com/octokit/octokit.net) → **.NET** - **JavaScript** → [octokit/octokit.js](https://github.com/octokit/octokit.js) ## Сторонние библиотеки @@ -131,6 +130,7 @@ ms.locfileid: '148179739' |**github-flask**|[github-flask (официальный веб-сайт)](http://github-flask.readthedocs.org)| |**torngithub**|[jkeylu/torngithub](https://github.com/jkeylu/torngithub)| |**githubkit**|[yanyongyu/githubkit](https://github.com/yanyongyu/githubkit)| +|**octokit.py**|[khornberg/octokit.py](https://github.com/khornberg/octokit.py)| ### Ruby diff --git a/translations/ru-RU/content/rest/overview/resources-in-the-rest-api.md b/translations/ru-RU/content/rest/overview/resources-in-the-rest-api.md index 26f5282190..9a1a2900ea 100644 --- a/translations/ru-RU/content/rest/overview/resources-in-the-rest-api.md +++ b/translations/ru-RU/content/rest/overview/resources-in-the-rest-api.md @@ -292,10 +292,10 @@ gem: >> tmpl.expand => "/notifications" - >> tmpl.expand :all => 1 + >> tmpl.expand all: 1 => "/notifications?all=1" - >> tmpl.expand :all => 1, :participating => 1 + >> tmpl.expand all: 1, participating: 1 => "/notifications?all=1&participating=1" [rfc]: https://datatracker.ietf.org/doc/html/rfc6570 diff --git a/translations/ru-RU/data/reusables/codespaces/stopping-a-codespace.md b/translations/ru-RU/data/reusables/codespaces/stopping-a-codespace.md index 007c23c749..25b4c48066 100644 --- a/translations/ru-RU/data/reusables/codespaces/stopping-a-codespace.md +++ b/translations/ru-RU/data/reusables/codespaces/stopping-a-codespace.md @@ -1,13 +1,13 @@ --- -ms.openlocfilehash: 4bdcc6ff93e7671d4dc368fc44784c963f549aae -ms.sourcegitcommit: e8c012864f13f9146e53fcb0699e2928c949ffa8 +ms.openlocfilehash: 1eac21c20c1be77fe00ea676714a835fdb2e0de7 +ms.sourcegitcommit: 1f3bd126ca000982c538f1621d47722737740943 ms.translationtype: MT ms.contentlocale: ru-RU -ms.lasthandoff: 11/09/2022 -ms.locfileid: "148159048" +ms.lasthandoff: 12/01/2022 +ms.locfileid: "148189891" --- -Вы можете остановить пространство кода в любой момент. При остановке пространства кода все выполняемые процессы останавливаются, и журнал терминала очищается. Все сохраненные изменения в пространстве кода по-прежнему будут доступны при следующем запуске. Если не остановить пространство кода явным образом, оно будет продолжать работать до истечения времени ожидания в результате бездействия. Дополнительные сведения см. в разделе [Жизненный цикл codespace](/codespaces/developing-in-codespaces/the-codespace-lifecycle#timeouts-for-github-codespaces). +Вы можете остановить пространство кода в любой момент. При остановке пространства кода все выполняемые процессы останавливаются, и журнал терминала очищается. Все сохраненные изменения в пространстве кода по-прежнему будут доступны при следующем запуске. Если не остановить пространство кода явным образом, оно будет продолжать работать до истечения времени ожидания в результате бездействия. Дополнительные сведения см. в разделе [Жизненный цикл codespace](/codespaces/getting-started/the-codespace-lifecycle#timeouts-for-github-codespaces). -Плата за ЦП взимается только с запуска codespace. Остановленное пространство кода влечет за собой только затраты на хранение. +Плата за использование ЦП взимается только при выполнении codespace. Остановленное codespace влечет за собой только затраты на хранение. Может потребоваться остановить и перезапустить пространство кода, чтобы применить к нему изменения. Например, при изменении типа виртуальной машины, используемой для пространства кода, необходимо остановить и перезапустить его, чтобы изменения вступили в силу. Вы также можете остановить пространство кода и перезапустить или удалить его, если возникла ошибка или произошло что-то непредвиденное.