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 7420113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:10:59+00:00 2026-05-29T08:10:59+00:00

I have a private server running git 1.7 When I git init a folder

  • 0

I have a private server running git 1.7
When I

git init 

a folder it doesn’t create a master branch.
Cause when i do:

git branch 

it doesn’t list anything.
When I do:

git --bare init

it creates the files.
When I type

git branch master 

it says:

fatal: Not a valid object name: 'master'.
  • 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-05-29T08:11:00+00:00Added an answer on May 29, 2026 at 8:11 am

    When I git init a folder it doesn’t create a master branch

    This is true, and expected behaviour. Git will not create a master branch until you commit something.

    When I do git --bare init it creates the files.

    A non-bare git init will also create the same files, in a hidden .git directory in the root of your project.

    When I type git branch master it says “fatal: Not a valid object name: ‘master'”

    That is again correct behaviour. Until you commit, there is no master branch.

    You haven’t asked a question, but I’ll answer the question I assumed you mean to ask. Add one or more files to your directory, and git add them to prepare a commit. Then git commit to create your initial commit and master branch.

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

Sidebar

Related Questions

I have tried following how-set-up-your-own-private-git-server-linux and private-remote-git-repositories-ubuntu-linode but I am still having problems. My
I have a Virtual Private Server running windows IIS hosing a startup site (.net
I have a Web Server running in Python . The server is private, so
I have this method to transfer files using a FTP Server: private void TransferNeededFiles(IEnumerable<string>
I have an Apache 2 installation on Debian with mod_ssl installed. The server private
Why can NHibernate create a proxy for classes with properties that have private setters
I have a home server running at home and I want to grant family
I'm working on a web server in C# and I have it running on
hello i have a basic client-server system running using java sockets. my problem is,
I have 2 servers running SQL Server 2005 with merge replication set up between

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.