github创建提交项目(本地使用SVN)

1 个人中心  “+”--》“new Repository”

项目名等的填写选择

2 然后就得到了项目地址,这是很多人就会本地开始‘SVN checkout’,然后add commit,然后报错,

大概是这样的:

File 'xxx' is out of date Files must be stored under trunk/ or a branches/ subdirectory

You have to update your working copy first.

意思大概说文件必须存储在trunk/或branches下,让你update一下。

然后你久一直update,一直commit都不行,除非你update后,当前目录下出现branches和trunk才行啊

所以怎么才会有这两个目录出现?

直接去到新建好的项目下:

点击 “creating a new file”创建文件,现在创建一个index.html

提交后,本地的文件下再update一下,就会发现多出trunk和branches目录,

然后,将需要提交的文件移到这两个目录任意一个下面,然后就可以 add commit了,通常放主干trunk下。

常见错误:

1.  'xxx' is not known to exist in therepository and is not part of the commit, yet its child

     'xxx' is part of the commit

这种问题就是外部的src文件夹还没有提交过,然后直接提交里面的文件,就会出现这种问题。

将src文件夹连同需要提交的文件一起提交就好了。

2   Directory 'xxx' is out of date MKCOL not allowed

     You have to update your working copy first.

 

这种原因是因为 XXX这个文件夹内容是空的,不允许提交,把空文件夹去掉或是里面加文件就好了。

猜你喜欢

转载自blog.csdn.net/github_38928905/article/details/86080614