git - 是否可以将 'fork" repo 到特定提交?

标签 git bitbucket

是否可以从 repo 中的特定提交在 bitbucket 中创建一个分支? 我不想将 repo 克隆到我的机器然后再推回去。有没有办法从 Web 界面执行此操作?

最佳答案

fork 并克隆 repo,然后使用 git 命令行重置分支:

git reset --hard <old-commit>
git push -f

关于git - 是否可以将 'fork" repo 到特定提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20056158/

相关文章:

git - 如何从远程删除分支(在 Atlassian Stash/Bitbucket 上)

macos - 如何为 Github 帐户和 Bitbucket 公司帐户添加多个 SSH key

git - 将问题从 Bitbucket 导入到 Github

git - MKS Integrity 能否与其他源代码控制工具集成? (SVN, Git...)

git - 是否可以将提交应用于 git 中的所有分支?

git - 如何在 Visual Studio 2019 中 fork 本地 git 存储库?

ssh - BitBucket:身份验证失败

google-app-engine - Google App Engine 源代码未与 Bitbucket 同步

git - 如何使用 git 跟踪另一个目录中的更改?

git - 如何在没有历史记录的情况下 fork Git 存储库的子集?