Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to submit a project in IDEA to GitHub

Shulou Source: shulou.com Published: 2022-06-01 13:54:43 10月28日 Update

This article focuses on "how to submit a project in IDEA to GitHub". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to submit a project in IDEA to GitHub.

GIT configuration

Modify the git installation location (the directory where you installed git yourself IDEA version 2018.3.5, different versions may have different windows)

GitHib configuration

For the first time, it is inevitable to create GitHub account information, click Add account to add account information, and enter the user name and password of GitHub in the pop-up box to log in to log in.

Submit a project

Step 1: create an ignore file .gitignore under the root of the project, and the contents of this file will not be submitted.

Step 2: select GitHub upload

Step 3: generally default, warehouse name is consistent with the project name by default. (what is uploaded here is only an empty project shelf, which is equivalent to a warehouse. You need to upload the project for the first time. You can skip this step when updating.)

Step 4: next is to submit the selection file to the Git repository

Step 4: the next step is to push the files from the git warehouse to the GitHub warehouse. By default, it has helped us to select all the files submitted to the git warehouse in the project.

At this point, submit the project in IDEA to GitHub to complete the operation

Pull from GitHub to IDEA

Step 1: select the Git check item

Step 2: select the project that requires clone

\

Step 3: a project called test01 will be created for you. Click yes.

Step 4: create a project using existing resources (according to personal choice, I choose default all the way)

At this point, the operation of pulling items from GitHub to IDEA is complete.

Select Enable Auto-Import to automatically import dependencies

Note: the default Maven of the project created by Clone is not your own Maven warehouse. We need to find our own Maven driver and Maven warehouse here. I believe you have a deeper understanding of "how to submit the project in IDEA to GitHub". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Project step selection warehouse file content different next information version account learning configuration practical deeper consistent inevitable personal location interest Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Tech Info Xiaomi MySQL macOS