Skip to content

How can I PUT some files/directories into a github repository? #1137

Answered by bitwiseman
elect86 asked this question in Q&A
Discussion options

You must be logged in to vote

Here's an example based on this test :

GHRepository ghRepository; // get your repo
GHContentBuilder ghContentBuilder = ghRepository.createContent()
    .message("Some commit msg"
    .path("some-path/to/where-you-want/yourFile.md")
    .content("yourContent")
    .commit();

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@elect86
Comment options

@bitwiseman
Comment options

@elect86
Comment options

Answer selected by bitwiseman
Comment options

You must be logged in to vote
1 reply
@bitwiseman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants