Case Studies

기본적으로 Repository를 Clone 할 수 있는 URL에는 HTTPS 와 SSH가 있다.

HTTP or HTTPS Permission (Only Private Repository)

➜  git git clone
Cloning into 'Yogiyo_Web'...
Username for '':
➜  git git clone
Cloning into 'Yogiyo_Web'...
Username for '': wingsh
Password for '':
remote: Invalid username or password.
fatal: Authentication failed for ''

SSH Key Permission

➜  git git clone
Cloning into 'atto-test'...
The authenticity of host ' (' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ',' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

SSH Key 제거 후, 접근 시

그러나 Private Repository라도 해당 Repository에 Access 할 수 있다면 Clone 또는 Download ZIP 기능을 사용할 수 있으니 주의해야 한다.

개인이 보안을 강화할 수 있는 방법에는 2단계 인증이 있다.

2단계 인증(Two-Factor authentication)

Github 계정을 가지고 있다면, 개인 계정의 ssh key를 Settings > SSH and GPG keys > SSH keys에 넣으면 되고,

없을 경우엔 Repository > Settings > Deploy keys에 넣으면 된다.


Block users

Permission level for an organization




Full administrative access

Customizable access

See all other members

 Create teams(tick)(tick)
 Mention teams(tick)(tick)
 See all teams(tick)(tick)
 See all repositories(tick) (tick)
 Create repositories(tick)(tick)
 Invite new members(tick)(error)
 Access to billing(tick)(error)

Repository permission levels for an organization

Repository actionRead permissionsWrite permissionsAdmin permissionsOwner permissions
Pull (read), push (write), and clone (copy) all repositories in the organization

Promote organization members to team maintainer

Convert organization members to outside collaborators

Create repositories (see "Creating repositories" for details)(tick)(tick)(tick)(tick)
Delete repositories (see "Deleting repositories" for details)

Change a repository's settings (see "Changing repository settings" for details)

Change a repository's visibility

Transfer repositories into, and out of, the organization account

Add a repository to a team (see "Adding a repository to a team" for details)

Add outside collaborators to a repository

Pull from (read) the team's assigned repositories(tick)(tick)(tick)(tick)
Push to (write) the team's assigned repositories
Fork (copy) the team's assigned repositories(tick)(tick)(tick)(tick)
Send pull requests from forks of the team's assigned repositories(tick)(tick)(tick)(tick)
Merge and close pull requests
Open issues(tick)(tick)(tick)(tick)
Close, reopen, and assign issues
Close issues they opened themselves(tick)(tick)(tick)(tick)
Apply labels and milestones
Have an issue assigned to them(tick)(tick)(tick)(tick)
Create and edit releases
View draft releases
View published releases(tick)(tick)(tick)(tick)
Edit and delete their own comments on commits, pull requests, and issues(tick)(tick)(tick)(tick)
Edit and delete anyone's comments on commits, pull requests, and issues
Edit wikis(tick)(tick)(tick)(tick)
Create statuses

'Infra > (SCM) Git' 카테고리의 다른 글

Github Security  (0) 2016.07.11
how to delete git remote branch  (0) 2016.04.28
Webhook  (0) 2016.04.25
Git bare repository sync  (0) 2016.04.19
Two-factor authentication on Github  (0) 2016.03.30
Git Basic Command  (0) 2014.09.16

+ Recent posts