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~
给我你的怀抱2017-05-02 09:32:41
git init
git add .
git commit -m “init”
git remote add origin your github warehouse address
git push
大家讲道理2017-05-02 09:32:41
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
phpcn_u15822017-05-02 09:32:41
Create an empty resource library on github,
Build a git environment locally, and submit it to the address of your resource library.
More Baidu, there are many resources
Attachment:
http://www.linuxidc.com/Linux/ 2015-08/121007.htm