How to upload a local project to the remote warehouse code cloud/github

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:
Insert image description here
2) Enter the command git clone https://gitee.com/code-in-java/yh-blog -parent.git
performs remote warehouse cloning:

Insert image description here

3. Copy the project file

Copy the local project files to this folder:
Insert image description here

4. Add to git management

Right-click the project file and click TortoiseGit - add to add the file to git:
Insert image description here

5. Upload to remote server code cloud

1) Right-click in the blank space and select Git Commit -> "master":
Insert image description here
2) In the opened dialog box, click the "Commit & Push" button to upload the file to Code Cloud:
Insert image description here

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.
Insert image description here


Guess you like

Origin blog.csdn.net/wcblog/article/details/116046304