如何在SourceTree中使用两个不同的BitBucket帐户 [英] How to work with two different BitBucket accounts in SourceTree

查看:513
本文介绍了如何在SourceTree中使用两个不同的BitBucket帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了两个不同的bitbucket帐户.一种是用于工作项目,另一种是供个人使用.在BitBucket中,我已经在每个帐户中为不同项目设置了一个存储库.

I have two different bitbucket accounts set up. One is for work projects and one is for personal use. In BitBucket I have set up a repository in each of the accounts for different projects.

在SourceTree中,我有一些现有的个人项目正在同步到我在SourceTree上的个人存储库.在左侧面板中,我可以看到其中一个个人项目的开发"分支,而在BitBucket的遥控器上,可以看到远程仓库.

In SourceTree I have a few existing personal projects that are syncing up to my personal repository on SourceTree. In the left hand panel I can see my "Develop" branch for one of those personal projects and on the remote in BitBucket I can see the remote repo.

在SourceTree中,我没有看到一种明显的方法来将两个帐户分开.例如,我已经在SourceTree中添加了工作仓库,但是当我尝试提交工作项目的初始版本时,它仅使我可以选择提交我的个人项目分支.

In SourceTree I don't see an obvious way to keep my two accounts separate. For example, I have added the work repo in SourceTree but when I try to commit an initial version of a work project it only gives me the option to commit my personal project branch.

现在如何在本地添加我的工作仓库,并仅将那些工作项目同步到该工作BitBucket帐户上的仓库中?

How can I now add my work repo locally and sync only those work projects into repos on that work BitBucket account?

推荐答案

仅适用于具有GitHub帐户的Mac上的SourceTree 2.0.2+ :

For SourceTree 2.0.2+ on Mac only with GitHub accounts:

  1. 从菜单中单击文件->新建/克隆
  2. 在对话框中单击设置图标.

  1. 在出现的弹出菜单中,单击设置"
  2. 它带来一个对话框,其中列出了用户帐户.将您的其他帐户添加到列表中.
  3. 关闭对话框.
  4. 在下图所示的工具上单击远程按钮(在本地旁边).

将列出所有添加的帐户及其各自的存储库,并带有用于克隆的按钮.

All your added accounts will be listed and their respective repositories with button to clone.

希望这会有所帮助.

这篇关于如何在SourceTree中使用两个不同的BitBucket帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆