gpt4 book ai didi

c# - 使用 libgit2sharp 克隆和推送

转载 作者:行者123 更新时间:2023-12-02 22:35:33 24 4
gpt4 key购买 nike

谁能告诉我如何克隆一个存储库并推送或发布提交的更改?

目前我能够修改克隆 repo 并能够提交我的更改,但我没有罚款 api 来推送它。也最初克隆 repo 协议(protocol)。

如果它不可用,使用 C# 的替代方法是什么?

-贾弗

最佳答案

Can anyone tell me how to Clone a repo and Push or publish the committed changes? Currently i am able to modify the clone repo and able to commit my changes, but i dont fine an api to push it. also to clone the repo initially.

ClonePush 功能目前正在 libgit2 中开发。下面是与此主题相关的一些 PR。

一旦 C 代码经过审查、合并和测试,将发布新版本的 LibGit2Sharp,以公开这些功能。

考虑到目前的进展,Clone 可能会在 Push 之前登陆,因此可以更快地从 LibGit2Sharp 中使用。

if its not available,What is the alternative to do in using c#?

您可以通过 Process 调用它来将其延迟到 git.exe 类型。这需要部署 msysgit 但在运行 .Net 代码的计算机上。

更新

ClonePush 现在都可以在 LibGit2Sharp 中使用。

  • 这个 test 显示如何对本地存储库进行克隆和推送
  • 有关凭证和回调处理的其他提示可以在 Remote 中看到 Clone 测试套件。

关于c# - 使用 libgit2sharp 克隆和推送,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11508832/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com