Skip to content

Add readme and .gitignore file in repository creation #2330

Description

@yuseferi

Hi there,
I'm using something similar to https://github.com/google/go-github/blob/master/example/newrepo/main.go
to create a new repository.
All works well, I'm looking for a way when I'm creating a new repository add a readme.md and .gitignore file to it. something like what the GitHub web interface does when you create a new repository.

if somebody has done something similar or knows how can I achieve this I really appreciate it.

Thanks in advance!

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