如何在SourceTree中重新找到工作副本

mot*_*ion 16 xcode atlassian-sourcetree

我有一个存储库添加到SourceTree.当我通过XCode提交对远程存储库的更改时,我看到更改已远程提交,但我的工作副本未在SourceTree应用程序中更新.我必须在SourceTree中将更改修改为master.这是因为我的工作副本文件夹在SourceTree中设置为错误的位置.

如何在SourceTree中更改本地工作副本文件夹的位置?

小智 32

最简单的方法是移动旧的工作副本(重命名文件夹)下次启动SourceTree时,SoureTree希望您设置存储库的新工作副本文件夹.

https://answers.atlassian.com/questions/43326/change-working-copy-location

  • 这对我有用,除了我有SourceTree在重新打开SourcTree时没有提示我改变路径.相反,我可以通过双击SourceTree中的本地仓库(然后提示我)来实现. (10认同)

Qwe*_*rty 6

另一种方法是调整sourcetree的书签xml文件中的条目

%localappdata%\Atlassian\SourceTree\bookmarks.xml
Run Code Online (Sandbox Code Playgroud)

例如

C:\Users\Qwerty\AppData\Local\Atlassian\SourceTree
Run Code Online (Sandbox Code Playgroud)