Reverting a full project to a specific revision

6 ビュー (過去 30 日間)
Avi Zohar
Avi Zohar 2017 年 7 月 19 日
回答済み: Divyam 2024 年 10 月 14 日
Hi,
I'm trying to use the built-in SVN to revert a full project (folder and subfolders) to a specific revision. Right clicking a file, choosing "source control" and then "Revert using SVN" brings up the SVN log that enables choosing a specific revision and Revert. Can this be done for a full project?
Thanks

回答 (1 件)

Divyam
Divyam 2024 年 10 月 14 日
You can try leveraging the terminal for this purpose. First navigate to the root of your project
cd <path to root of the project>
If you have the revision number of the version you wish to return to, use the "svn merge" command to revert to this revision version
% The "." reverts all the files to that specific revision number
svn merge -r HEAD:REVISION_NUMBER .
Commit the changes to the repository to finalize the revert
svn commit -m <Commit Message>

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by