Transfer the local project to coding (gitHub)

Goal: Create a new project on coding (or GitHub), then upload the local code so that other people can see it in other places and use it

1. Install the git tool and write the project

2. Create a project on conding and initialize it

3. Open the git naming window in any directory, execute git init, and then execute git clone  https://git.coding.net /xxxx clone. The address behind the clone is the address of the newly created project

4. Here comes the key: Copy the .git folder generated by git init to the project, that is, in the folder of the project name (probably the same level as src)

5. Open the git naming window under the project name folder, and then execute the following command

    1. Git add. Note that there is a point at the end 

    2. git commit -m'first commit' means comments

    3、 git push origin mater 

6. Go to the website to see the code for the project already exists

Guess you like

Origin blog.csdn.net/l1509214729/article/details/81907989