84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1、我在本地已经有一个项目。2、开发到一半的时候我想用git来管理这个项目。3、然后我在github上新建了一个项目4、那么我如何把本地的项目同新建的git关联起来?我现在知道的办法是使用git clone下载空项目,然后把之前的项目拷过去,git add 然后 commit push
git add
commit
push
问题是:我并不想移动或者改原有项目的文件名PS:我现在使用的环境是CentOS 7
先谢谢回答者~
业精于勤,荒于嬉;行成于思,毁于随。
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
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 resourcesAttachment: http://www.linuxidc.com/Linux/ 2015-08/121007.htm
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