1. I already have a project locally.
2. Halfway through development, I want to use git to manage this project.
3. Then I created a new project on github
4. So how do I associate the local project with the newly created git?
The way I know now is to use git clone to download the empty project, and then copy the previous project over, git add
and then commit
push
The problem is: I don’t want to move or change the file name of the original project
PS: The environment I am currently using is CentOS 7
Thank you in advance~
git init
git add .
git commit -m “init”
git remote add origin your github warehouse address
git push
Execute git init in the directory where your original project is located to create a git project and then synchronize it to the remote server