Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7959113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:31:19+00:00 2026-06-04T04:31:19+00:00

GitHub API docs says: Git DB API functions will return a 409 if the

  • 0

GitHub API docs says:

Git DB API functions will return a 409 if the git repo for a Repository is empty or unavailable.

My POST on $repo/git/trees returns 409 indeed.

How do I create initial commit in the repository then? Do I have to force user to commit some useless junk manually, just for the sake of creating root commit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:31:20+00:00Added an answer on June 4, 2026 at 4:31 am

    I emailed github support with the same issue and here is their response:

    From: Rick (GitHub Staff)
    Subject: Creating an initial commit using the v3 API
    
    Currently, you can't add the initial commit through the API.  Thanks for the
    feedback. I've added your suggestion to the Feature Request List™ for the team
    to see.
    

    As a workaround, depending on your use case, you may be able to create forks rather than new repos.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When reading a tree using the github api : GET /repos/:user/:repo/git/trees/:sha you can either
Is it possible to create a new Git Repo at GitHub through restful API
Looking at the GitHub API reference at http://develop.github.com/p/repo.html , I see all sorts of
I have make some functions to retrieve data using the Github API. I have
I'm using Github, and realized they have a nice little api for accessing repo
I have an AJAX call getting info out of the Github API. It is
I'm looking at the following API: http://wiki.github.com/soundcloud/api/oembed-api The example they give is Call: http://soundcloud.com/oembed?url=http%3A//soundcloud.com/forss/flickermood&format=json
Github has the following recommendation for global git configuration ~/.gitconfig : [alias] # Is
I have repository on GitHub to which I commit regularly from my local computer.
I am using the PHP library for the Graph API ( http://github.com/facebook/php-sdk ) but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.