upload code to git

1. In the local code folder git init, generate the .git folder, that is, the local git repository.

2. git add . Add all files of the project to the staging area

3. git commit -m "" to commit the file to the local repository

4. Create a new Repository on github

5. Associate the local warehouse with the remote warehouse git remote add origin https://your own warehouse url address

6. Upload the code to the remote warehouse git push origin master

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325131281&siteId=291194637