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

Как поделиться репозиторием на github

  • автор:

GitHub Desktop documentation

With GitHub Desktop, you can interact with GitHub using a GUI instead of the command line or a web browser. You can use GitHub Desktop to complete most Git commands from your desktop, such as pushing to, pulling from, and cloning remote repositories, attributing commits, and creating pull requests, with visual confirmation of changes.

Start here

Creating your first repository using GitHub Desktop

Installing GitHub Desktop

Authenticating to GitHub in GitHub Desktop

Popular

Cloning and forking repositories from GitHub Desktop

Managing branches in GitHub Desktop

Syncing your branch in GitHub Desktop

Creating an issue or pull request from GitHub Desktop

What’s new

Guides

Stashing changes in GitHub Desktop

You can temporarily save your changes without committing them to a branch by stashing the changes in GitHub Desktop.

Reverting a commit in GitHub Desktop

You can use GitHub Desktop to revert a specific commit to remove its changes from your branch.

Amending a commit in GitHub Desktop

You can use GitHub Desktop to amend your last commit.

Cherry-picking a commit in GitHub Desktop

You can use GitHub Desktop to pick a specific commit on one branch and copy the commit to another branch.

Как дать доступ к приватному репозиторию на Github

Часто бывает, что нужно дать доступ к private ветке на GitHub, например, для совместной разработки.

Многие сталкиваются с тем, что не могут найти в интерфейсе GitHub как это сделать. Но на самом деле здесь всё очень просто.

Вот краткая и подробная инструкция.

Инструкция как дать доступ к private репозиторию GitHub

  1. Запросите у человека, которому хотите дать доступ к репозиторию его электронную почту. Почта должна быть привязана к его аккаунту на Гите.
  2. Заходите в свой аккаунт GitHub и выбираете нужный репозиторий из списка.
    переходим в список репозиториев
  3. Находясь в нужном репозитории нажимаем на Settings
    переходим в настройки репозитория
  4. В левом меню выбираем Collaborators
    Выбираем пункт Collaborators
  5. Далее в блоке Manage access нажимаем на кнопку Add people и добавляем адрес того, кого хотите добавить для работы с Git репозиторием.
    Делимся репозиторием
    После этого человек, которого вы добавили, получит на электронную почту приглашение со ссылкой, перейдет по ней и присоединится к вашему репозиторию.

Вот и вся хитрость. Добавляйте в избранное, чтобы не потерять ��

Доступ к приватному репозиторию на Github для других участников

У меня есть репозиторий на Github, он приватный. И есть например друг, который хочет его просмотреть, но не редактировать. Как ему предоставить доступ без добавления в команду?

Отслеживать

49.3k 17 17 золотых знаков 57 57 серебряных знаков 101 101 бронзовый знак

задан 26 мар 2019 в 16:54

Алексей Бобрович Алексей Бобрович

412 1 1 золотой знак 4 4 серебряных знака 9 9 бронзовых знаков

Сам недавно искал. Видимо никак.

26 мар 2019 в 17:03

@holyblackcat, видимо придётся только через добавления в команду.

26 мар 2019 в 17:04

Формально, есть токены, которым доступ можно разграничивать. Но, они вроде только для приложений, глазами не посмотреть. Доступ только на чтение можно организовать архивом — скачиваете, перекидываете другу.

26 мар 2019 в 18:26

@monk, ну и как токены помогут?

Приглашение участников совместной работы в личный репозиторий

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

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

Если вы используете GitHub Free, в общедоступных и частных репозиториях можно добавить неограниченное число участников совместной работы.

В этой статье

About collaboration in a personal repository

To collaborate with users in a repository that belongs to your personal account on GitHub, you can invite the users as collaborators.

If you want to grant more granular access to the repository, you can create a repository within an organization. For more information, see «Access permissions on GitHub.»

Private forks inherit the permissions structure of the upstream repository. This helps owners of private repositories maintain control over their code. For example, if the upstream repository is private and gives read/write access to a team, then the same team will have read/write access to any forks of the private upstream repository. Only team permissions (not individual permissions) are inherited by private forks.

Note: When you change base permissions for an organization, permissions for private forks are not automatically updated. For more information, see «Setting base permissions for an organization.»

Inviting a collaborator to a personal repository

You can send an invitation to collaborate in your repository directly to someone on GitHub, or to the person’s email address

GitHub limits the number of people who can be invited to a repository within a 24-hour period. If you exceed this limit, either wait 24 hours or create an organization to collaborate with more people. For more information, see «Creating a new organization from scratch.»

  1. Ask for the username of the person you’re inviting as a collaborator. If they don’t have a username yet, they can sign up for GitHub. For more information, see «Creating an account on GitHub.»
  2. On GitHub.com, navigate to the main page of the repository.
  3. Under your repository name, click

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

dropdown menu, then click Settings.

Screenshot of a repository header showing the tabs. The

Further reading

  • «Permission levels for a personal account repository»
  • «Removing a collaborator from a personal repository»
  • «Removing yourself from a collaborator’s repository»
  • «Organizing members into teams»

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

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