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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:17:57+00:00 2026-06-15T23:17:57+00:00

Git-1.7.11-preview20120710.exe used by me. I create a git repository cd GIT scm/ git init

  • 0

Git-1.7.11-preview20120710.exe used by me. I create a git repository

cd "GIT scm/"
git init --bare shahed.git
cd shahed.git
git update-server-info

Then I start git daemon by following command

git daemon --reuseaddr --base-path="E:/GIT scm/" --export-all --verbose --enable=receive-pack

Then I clone the git repository as following

git clone git://localhost/shahed.git

Cloning into 'shahed'...
warning: You appear to have cloned an empty repository.

cd shahed
touch shahed.txt
touch shohel.txt
git add *.*
git commit -m 'ok'

[master (root-commit) 2062f1d] 'ok'
 0 files changed
 create mode 100644 shahed.txt
 create mode 100644 shohel.txt

git push

No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date

While git daemon console log following message

[4044] Ready to rumble
[736] Connection from [::1]:50076
[736] Extended attributes (16 bytes) exist <host=localhost>
[736] Request upload-pack for '/shahed.git'
[4044] [736] Disconnected
[4860] Connection from [::1]:50079
[4860] Extended attributes (16 bytes) exist <host=localhost>
[4860] Request receive-pack for '/shahed.git'
[4860] fatal: The remote end hung up unexpectedly

But I am unable to git push. anybody tell me which step i missed to creating git repository. all the initiative are taken by me are ok or where is the lackings for configuring git repository.

  • 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-15T23:17:59+00:00Added an answer on June 15, 2026 at 11:17 pm

    What that is telling you is that there is no master branch in your bare origin repository, because it was created empty. So, it can’t find the branch you want to update, and by default it won’t blindly create a new branch (in case it was a typo or something). You may need to use git push -f origin master the first time. Once there is a master branch in origin, normal git push should work fine.

    Alternatively, you could create your working repository first, with at least one commit in it, then git clone --bare it into your git-daemon location, but you’ll then want to remove the origin remote specification in your bare repository, and you’ll have to manually add it (or re-clone) in your working repository.

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

Sidebar

Related Questions

Git allows to create a shared repository amongs a group: git --bare init --shared=group
I'm using msysgit (Git-1.7.11-preview20120710.exe). I tried GitStack on Win8, which is a git server,
I installed Git-1.7.9-preview20120201.exe, and when I try to access my repository via SSH it
My git is not working properly.when i try to pull from the repository I
git version 1.7.7 I have dropbox git repository. From my works computer karl-sun I
I install Git-1.7.9-preview20120201.exe which is the lateest version, and I setup it using the
I have a Git repository. I have cloned the repository and can commit my
Git fetch and pull both stopped working yesterday on the server (AWS instance). $
I'm totally messed with my git repository. I can't push / pull remote branch..it
git.kernel.org has a repository named linux-next and a repository named linux-next-history . How do

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.