0
我在本地创建了一个演示项目,现在我想把它推到svn回购。以下是我的操作来实现这一点。svn方便的方式将本地项目推送到远程回购
#push to remote repo
svn import /home/foo/workspace/bar/spring-boot-demo \
https://svn.foo.com/svn/server/samples/spring-boot-demo/ \
-m "Initial import"
#found /home/foo/workspace/bar/spring-boot-demo does not to become a working copy automatically So I have to check it out
svn checkout https://svn.foo.com/svn/server/samples/spring-boot-demo/
#then delete those files wanted to ignore
svn delete .classpath --keep-local
svn delete .settings --keep-local
svn delete .project --keep-local
svn delete target --keep-local
#then create .svnignore to include these ignored files and execute svn ignore
svn propset svn:ignore -F .svnignore .
#commit again
svn commit
你可以看到它很麻烦,是否存在一些方便的方式来实现这一点?在git中,你只需要创建一个.gitignore
然后执行git push
,就是这样。