是否可以同时在GitHub for Windows上使用Bitbucket和GitHub?
例如,我是否可以让两个网站上的存储库都显示在该程序中,并在提交/同步存储库时将其推送到相应网站上的存储库?
是否可以同时在GitHub for Windows上使用Bitbucket和GitHub?
例如,我是否可以让两个网站上的存储库都显示在该程序中,并在提交/同步存储库时将其推送到相应网站上的存储库?
是的,如果你限制只使用一个远程仓库,你可以使用GitHub for Windows与任何上游仓库配合使用。
添加上游仓库的过程现在更加容易,因为GitHub for Windows应用程序会(不断)更新:
选择URL,然后将文本从浏览器中拖动到GitHub for Windows应用程序中,然后放置它。 它将自动添加存储库。
(原始答案为2013年2月)
为了使“GitHub for Windows”能够“发布”(而不是“推送到GitHub”),您需要在本地仓库的设置中定义一个名为“origin”的远程仓库,并使用Bitbucket仓库的https地址:
https://user@bitbucket.org/user/repo
如果你通过“GitHub for Windows”创建了一个本地仓库,你可以通过其设置添加正确的远程仓库:
credential-cache
' is not a git command",了解有关 Git 1.7.9+ 中最近引入的凭据缓存机制的更多信息)publish
”(而不是“push to GitHub
”)。这是因为远程“origin”是https协议。
同步
”:
还有一个新的Windows客户端可用于Bitbucket。我今天尝试了一下,认为它是一个更好的产品。
现在有更简单的方法让GitHub for Windows连接到您的Bitbucket帐户。请查看下面的链接。
user.name
和user.email
,以便被识别为 @drzaus。 - VonCgit config --global user.name "FIRST LAST"
和git config --global user.email "whatever"
。 - drzaus