libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

Remote URL includes both username & access token.

Open aboggis-lc opened this issue 7 months ago • 0 comments

using var repo   = new Repository(repoPath);
var       remote = repo.Network.Remotes["origin"]?.Url;

Remote will contain both the user & the token used in cloning.

https://git-user:[email protected]/orgname/reponame.git

aboggis-lc avatar May 15 '25 00:05 aboggis-lc