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
,就是這樣。