8000 Getting Started · Issue #44 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content
Getting Started #44
Closed
Closed
@ChuckSavage

Description

@ChuckSavage

I've successfully created a Repository:

UriAgility gitUri = UriAgility.Parse("~/App_Data/SCommunity/wikiRepo/.git");
if (!gitUri.FileInfo.Directory.Exists)
Repository.Init(gitUri.FileInfo.DirectoryName);

using (var repo = new Repository(gitUri.PhysicalPath))
{
HttpContext.Current.Response.Write(string.Format("Working directory: {0}
", repo.Info.WorkingDirectory));
HttpContext.Current.Response.Write(string.Format("Repository path: {0}
", repo.Info.Path));

...
What do I put here to Add file to the repository?
What do I do to get the file once it is in?
How do I get the diff between versions?
...
}

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

      0