관리 메뉴

nalaolla

GitHub 본문

JetBrain/IntelliJ

GitHub

날아올라↗↗ 2020. 2. 7. 14:49
728x90

IntelliJ IDEA lets you manage projects hosted on GitHub directly from the IDE: clone repositoriesshare your projectscreate forksshare code through gistscreate pull requests and review incoming pull requests.

Register a GitHub account

To be able to retrieve data from a repository hosted on GitHub, or share your projects, you need to register your GitHub account in IntelliJ IDEA.

If you do not want to specify yor credentials each time you sync with a remote, or push your commits, you can configure IntelliJ IDEA to save your account information (see Configure a password policy).

 

 

Register an existing account

1.    In the Settings/Preferences dialog Ctrl+Alt+S, select Version Control | GitHub in the left pane.

2.    Click Add account.

3.    In the dialog that opens, specify your GitHub server URL (either github.com, or an enterprise instance).

4.    Do one of the following:

o    If you already have a token, click the Enter token link and paste it there.

o    If you want to obtain a new token, enter your login and password. If you have two-factor authentication enabled, you will be asked to enter a code that will be sent to you by SMS or through the mobile application. See Creating a personal access token for more details on GitHub tokens.

The token must have the repo and the gist scopes enabled in your account permissions (see Understanding scopes).

 

 

Create a new GitHub account

1.    In the Settings/Preferences dialog Ctrl+Alt+S, select Version Control | GitHub in the left pane.

2.    Click Add account, and in the dialog that opens, click Sign up for Github.

3.    Register your account on the Sign up for GitHub page that opens.

4.    Return to the IntelliJ IDEA settings and specify your credentials.

 

 

Manage multiple accounts

You can use multiple GitHub accounts in IntelliJ IDEA: for example, a personal account to work on an open-source project, and a corporate account for your main job.

1.    In the Settings/Preferences dialog Ctrl+Alt+S, select Version Control | GitHub in the left pane.

2.    Use the  SHAPE  \* MERGEFORMAT  button to add as many accounts as you need.

3.    (Optional) To set an account as a default one for the current project, select it and click  SHAPE  \* MERGEFORMAT . If a default account is set, IntelliJ IDEA will not ask you to select an account you want to use when you share your project on GitHubrebase a forkcreate a pull request, or create a gist.

 

https://www.jetbrains.com/help/idea/github.html#GitHub.xml

728x90