libgit2 / libgit2/libgit2sharp

Unable to push the commit to the Bitbucket Repository in C# using LibGit2Sharp

Open
#2,102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

Hi Team,

Iam recently used LibGit2Sharp dll version is 0.30.0 with Net core c#.Here when i try to push the READ.MD file iam able to push one time to master branch.After that 100 commits i tried to push but its not reached to Bitbucket Repository.

I used below code to push

PushOptions options = new PushOptions();
options.CredentialsProvider = new CredentialsHandler(
(url, usernameFromUrl, types) =>
new UsernamePasswordCredentials()
{
Username = "xxxxxxxxxxxxxxxxxxxxx", //user name of the bitbucket account
Password = "xxxxxxxxxxxxxxxxxxxxxx" // Api key of the bigbucket account
});

repository.Network.Push(remote, $"+refs/heads/master", options);

//repository.Network.Push(remote, masterBranch.CanonicalName, options);
Console.WriteLine("Push the Branch Successfully.");
//repo.Network.Push(masterBranch, options);

Can anyone please help me on this.

Thanks,
AnilKumar.D

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are identified in the report. Start by reproducing the repeated push through repository.Network.Push with the shown PushOptions and branch ref, then collect the push result or error and compare the local branch with the Bitbucket repository; done means the cause of later pushes not arriving is identified and covered by a regression test or documented reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.