git 是否可以使用 GitHub App 提交到 bitbucket 存储库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19410909/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is it possible to use GitHub App to commit to bitbucket Repository?
提问by iPhoneProcessor
Is it possible to use GitHub App to commit to bitbucket Repository?
是否可以使用 GitHub App 提交到 bitbucket 存储库?
If yes then where I need to add in GitHub ? I see Clone in SourceTree option, I want to clone in Git Hub, Is it possible ?
如果是,那么我需要在哪里添加 GitHub ?我在 SourceTree 选项中看到克隆,我想在 Git Hub 中克隆,这可能吗?
采纳答案by jabaldonedo
If what you want is using Github App for pushing your code to bitbucket what you need to do is going to Settings (in your local repo) and change your Primary remote repository (origin)to point to bitbucket in your Github App. Then you can Sync Branch.
如果您想要的是使用 Github 应用程序将代码推送到 bitbucket,那么您需要做的是转到设置(在您的本地存储库中)并更改您的主远程存储库(源)以指向您的 Github 应用程序中的 bitbucket。然后你可以同步分支。
回答by tom
A .git repository is a .git repository. You can read your local repository with any client app. Clone the repo however you want, then open it in whatever software you want.
.git 存储库是一个 .git 存储库。您可以使用任何客户端应用程序读取本地存储库。克隆你想要的仓库,然后用你想要的任何软件打开它。
edit:
编辑:
GitHub for Mac is optimized to work with GitHub remotes — but if you wish to use a non-GitHub remote, it will work just fine. Set the remote manually in the 'Settings' view and everything else should work as expected.
Mac 版 GitHub 已针对 GitHub 遥控器进行了优化——但如果您希望使用非 GitHub 遥控器,它也能正常工作。在“设置”视图中手动设置遥控器,其他一切都应按预期工作。
https://help.github.com/articles/can-i-have-multiple-git-remotes-non-github-remotes
https://help.github.com/articles/can-i-have-multiple-git-remotes-non-github-remotes
回答by keithics
Since you are in Mac. just open the Github app then drag and drop the folder into the app ;) Just make sure you have the git initialized and setup before dragging.
因为你在 Mac 上。只需打开 Github 应用程序,然后将文件夹拖放到应用程序中;) 只需确保在拖动之前已初始化并设置了 git。