libgit2 / libgit2/libgit2sharp
Unable to push the commit to the Bitbucket Repository in C# using LibGit2Sharp
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 3.5k
- Fork
- 925
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Nel report non sono identificati file del repository né test. Inizia riproducendo il push ripetuto tramite repository.Network.Push con le PushOptions e il branch ref mostrati; quindi raccogli il risultato del push o l’errore e confronta il branch locale con il repository Bitbucket; il lavoro è completato quando è stata identificata la causa per cui i push successivi non arrivano e questa è coperta da un test di regressione o da una riproduzione documentata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, git
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100