Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 SVN 存储库中的所有代码(用于开发目的)与我在 /home/site/public_html/ 中运行的实时代码同步,就像用 SVN 存储库中的新代码覆盖任何实时的代码一样(假设SVN 存储库位置在 /usr/bin/svn/project 中,只是为了论证,即使它可能远非如此)?
只需在 /home/site/public_html 中执行svn checkout或操作。svn export
svn checkout
svn export
就我个人而言,我的 Web 服务器上有一个签出副本,并且存储库位于同一台机器上。然后我有一个钩子,以便在提交时,我svn update在实时目录中执行,以便提交到存储库立即使更改生效。
svn update