Preface
Many friends have created maven projects locally and performed version management through git, but they do not know how to upload the project to code cloud or github. This article will explain in detail how to upload local projects to code cloud and associate it with idea. Development tools for your reference.
1. Preparation
1. Register the code cloud and create a warehouse
2. Install git and TortoiseGit
3. Install git bash
2. Detailed steps
1. Create a project folder
Create an empty folder: yh-blog-parent
2. Establish remote warehouse association
1) Enter the folder, right-click and select "Git Bash Here", enter the command git init in the opened command container to initialize:
2) Enter the command git clone https://gitee.com/code-in-java/yh-blog -parent.git
performs remote warehouse cloning:
3. Copy the project file
Copy the local project files to this folder:
4. Add to git management
Right-click the project file and click TortoiseGit - add to add the file to git:
5. Upload to remote server code cloud
1) Right-click in the blank space and select Git Commit -> "master":
2) In the opened dialog box, click the "Commit & Push" button to upload the file to Code Cloud:
2. Related ideas
This step is very simple. You only need to open the project through idea, and then you can perform project version management through git in Idea.
Follow the public account "Technical Management Practice". I will regularly share a series of articles on technical architecture , advanced programmer architects , programmer technical career planning , programmer team management technical director/CTO and MBA articles. Welcome to learn and exchange.