Can we set a single file as external in Subversion?

后端 未结 4 2030
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 08:58

Can we set a single file as external in Subversion?

4条回答
  •  伪装坚强ぢ
    2020-12-06 09:39

    I couldn't find a good example about how to create a svn file external. So I am providing an example here so it can be useful for others.

    The format is

    svn propset svn:externals " " 
    

    For e.g. following command

    svn propset svn:externals "my.cfg https://myserver/my/svn/location/my_sample_file.cfg.template" my_folder
    

    will create the file https://myserver/my/svn/location/my_sample_file.cfg.template under my_folder as my.cfg. Here obviously, I assume you already have the folder my_folder under your current directory which is under svn.

提交回复
热议问题