git 远程库和本地库处理
创建git库的方法
第一种方法: 在码云建立一个demo的git库。git clone在本地一个文件夹。之后会出现在.git的目录下方(这是clone而非pull切记分清楚)
而不是在.git的上一层。
第二种方法:在本地有项目,git init使他成为git的版本控制。然后push到远程一个库里面。
这里面有很多问题:(查看我的stack over:http://stackoverflow.com/a/38397401/6592719)
1 A computer and your github associated. Use SSH. Computer code so you do not need to submit verified enter image description here
2 git can not manage empty folder. So you have to write such a readme.md saved in a file. Otherwise you will not find the file. 3 Your local project is nothing new projects move over. Please git init - git add -. Git commit -m "" go again.
4 then git pull origin master
5 At last git push origin master (solve all problem).