I'm using subversion (TortoiseSVN) and I want to remove the .svn folders from my project for deployment, is there an automated way of doing this using subversion or do I have to create a custom script for this?
我正在使用subversion(TortoiseSVN),我想从我的项目中删除.svn文件夹进行部署,是否有使用subversion自动执行此操作的方法,还是我必须为此创建自定义脚本?
9 个解决方案
#1
24
TortoiseSVN has an export function. This will create the entire SVN tree elsewhere without the .svn
folders.
TortoiseSVN具有导出功能。这将在其他地方创建整个SVN树而不使用.svn文件夹。
Also, a lot of FTP clients have filtering, which you can add .svn
to just in case you forget one day.
此外,许多FTP客户端都有过滤功能,您可以添加.svn以防万一您忘记了一天。
#2
30
Use
svn export <url-to-repo> <dest-path>
It gets just the source, nothing else. Look in svn export (in Version Control with Subversion) for more information.
它只是来源,没有别的。查看svn export(在带有Subversion的Version Control中)以获取更多信息。
#3
10
No need for a script. As suggested, use the Export command:
不需要脚本。如建议的那样,使用Export命令:
- Right click on the top level of your working copy.
- Open the TortoiseSVN sub-menu
- Select Export
- Follow on screen dialogs.
右键单击工作副本的*。
打开TortoiseSVN子菜单
按照屏幕对话框进行操作。
#4
8
But if you don't want to use svn export (for whatever reason)...
但如果你不想使用svn导出(无论出于何种原因)......
find /path/to/project/root -name '.svn' -type d -exec rm -rf '{}' \;
#5
3
On a computer:
在电脑上:
rsync -avz --exclude=".svn" /yourprojectwithsvninside/ /yourprojectwithoutsvninside/
From the repository:
从存储库:
svn export http://yourserver/svn/yourproject/ ./yourproject/
#6
0
public static: yes FileZilla has filename filtering. Look under View -> Filename Filters. I checked in v3.1.1
public static:是的FileZilla有文件名过滤。在View - > Filename Filters下查看。我检查了v3.1.1
I think most FTP clients have it now.
我想大多数FTP客户端现在都有。
#7
0
Windows Vista / 7: turn on view hidden folders and files. In the search box (top right in a Windows Explorer window), write .svn
. All .svn
folders will show at top, delete them all and turn hide files back on.
Windows Vista / 7:打开查看隐藏的文件夹和文件。在搜索框(Windows资源管理器窗口的右上角)中,写入.svn。所有.svn文件夹将显示在顶部,将它们全部删除并重新打开隐藏文件。
#8
-1
Do svn export <url>
to export a clean copy without .svn folders.
svn export
#9
-1
Use the export feature.
使用导出功能。
#1
24
TortoiseSVN has an export function. This will create the entire SVN tree elsewhere without the .svn
folders.
TortoiseSVN具有导出功能。这将在其他地方创建整个SVN树而不使用.svn文件夹。
Also, a lot of FTP clients have filtering, which you can add .svn
to just in case you forget one day.
此外,许多FTP客户端都有过滤功能,您可以添加.svn以防万一您忘记了一天。
#2
30
Use
svn export <url-to-repo> <dest-path>
It gets just the source, nothing else. Look in svn export (in Version Control with Subversion) for more information.
它只是来源,没有别的。查看svn export(在带有Subversion的Version Control中)以获取更多信息。
#3
10
No need for a script. As suggested, use the Export command:
不需要脚本。如建议的那样,使用Export命令:
- Right click on the top level of your working copy.
- Open the TortoiseSVN sub-menu
- Select Export
- Follow on screen dialogs.
右键单击工作副本的*。
打开TortoiseSVN子菜单
按照屏幕对话框进行操作。
#4
8
But if you don't want to use svn export (for whatever reason)...
但如果你不想使用svn导出(无论出于何种原因)......
find /path/to/project/root -name '.svn' -type d -exec rm -rf '{}' \;
#5
3
On a computer:
在电脑上:
rsync -avz --exclude=".svn" /yourprojectwithsvninside/ /yourprojectwithoutsvninside/
From the repository:
从存储库:
svn export http://yourserver/svn/yourproject/ ./yourproject/
#6
0
public static: yes FileZilla has filename filtering. Look under View -> Filename Filters. I checked in v3.1.1
public static:是的FileZilla有文件名过滤。在View - > Filename Filters下查看。我检查了v3.1.1
I think most FTP clients have it now.
我想大多数FTP客户端现在都有。
#7
0
Windows Vista / 7: turn on view hidden folders and files. In the search box (top right in a Windows Explorer window), write .svn
. All .svn
folders will show at top, delete them all and turn hide files back on.
Windows Vista / 7:打开查看隐藏的文件夹和文件。在搜索框(Windows资源管理器窗口的右上角)中,写入.svn。所有.svn文件夹将显示在顶部,将它们全部删除并重新打开隐藏文件。
#8
-1
Do svn export <url>
to export a clean copy without .svn folders.
svn export
#9
-1
Use the export feature.
使用导出功能。