How to upload existing local projects to github

default-user-image.png

Hello everyone, I am Xiaomei, the original author of the official account: ” Xiaomei’s Front-End Road “.

As a member of the continuous exploration in the front-end field, I will record the problems encountered in development here. If you have encountered the same problem, I hope this article will be helpful to you.


1. Create a new repository on github

For specific steps, you can see many tutorials on the Internet

2. Initialize the local project as a git repository

Find the root directory of the local project and execute it in sequence

1. Create a local git repository

 git init

2. Add all local files to the local git repository

 git add .

If the following error is reported here, you need to execute it first:

 git config -- global core. autocrlf false

Then execute git add .

  1. The file will have its original line endings in

This article is reprinted from https://blog.p2hp.com/archives/8529
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment