Idea pushes the project to Git remote warehouse, how does idea CloneGit remote warehouse

Table of contents

1. Create a Git repository to save the project to be pushed by idea

2. Push the project to the Git warehouse in the idea

 2.1 Step 1: Click VCS 

 2.2 Step 2: After clicking VCS, select Create git repository under import and click it

 2.3 Step 3: Select the warehouse you created to store the computer

 2.4 Step 4: Click VCS to select Remotes under Git and click it

 2.5 Step 5: Click the + sign

 2.6 Step 6: Paste the link copied when the Git warehouse is created into the example in the figure

 2.7 Step 7: Click VCS to select Commit File under Git and click it

 2.8 Step 8: Select the structure and data we want to push to the Git warehouse

 2.9 Step 9: If you click the Commit button to pop up the box, see the tutorial in the figure below

 2.10 Step 10: Select VCS and select Push under Git to push to the remote

 2.11 The eleventh step: as shown in the figure: finally click Push to push 

 2.12 Added! ! !

3. How does idea cloneGit remote warehouse

 3.1 The first step: we open the idea and select Get from Version Control 

 3.2 The second step: as shown in the figure

 3.3 After clicking the Clone button, we have successfully cloned the data in the warehouse into our project


1. Create a Git repository to save the project to be pushed by idea

  • Proceed as follows: 

 

 

 

 

  • Notice! ! ! Copy the link in the picture above 

 2. Push the project to the Git warehouse in the idea

  2.1 Step 1: Click VCS 

 

 2.2 Step 2: After clicking VCS, select Create git repository under import and click it

 

  2.3 Step 3: Select the warehouse you created to store the computer

  Now how do we push the project structure and data to the Git repository! ! ! look down don't blink

 2.4 Step 4: Click VCS to select Remotes under Git and click it

 2.5 Step 5: Click the + sign

 2.6 Step 6: Paste the link copied when the Git warehouse is created into the example in the figure

 2.7 Step 7: Click VCS to select Commit File under Git and click it

Notice! ! ! If we find that the data file or class name we want to push to the Git warehouse is red, it means that the file is newly created. We need to right-click the file and select +Add under Git to operate the above process! !

 2.8 Step 8: Select the structure and data we want to push to the Git warehouse

 2.9 Step 9: If you click the Commit button to pop up the box, see the tutorial in the figure below

 2.10 Step 10: Select VCS and select Push under Git to push to the remote

2.11 The eleventh step: as shown in the figure: finally click Push to push 

  

Now let's go to our remote warehouse to see! ! ! Already succeeded

 

2.12 Added! ! !

 

3. How does idea cloneGit remote warehouse

 3.1 The first step: we open the idea and select Get from Version Control 

 3.2 The second step: as shown in the figure

 3.3 After clicking the Clone button, we have successfully cloned the data in the warehouse into our project

  • The figure below is the data structure of the CloneGit warehouse we want 

  • ok! ! ! Successfully cloned into the project in the idea 


Goodbye! ! ! Like it if it helps you 

 

 

 

 

Guess you like

Origin blog.csdn.net/m0_63300795/article/details/126774560#comments_27052229