Skip to content

Remote URL includes both username & access token. #2151

Open
@aboggis-lc

Description

@aboggis-lc
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions