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

  • Home
  • SEARCH
  • 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 8782235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:31:12+00:00 2026-06-13T20:31:12+00:00

Currently, git bash in windows pointing to vikas@VIKAS-PC /D/code/myrepo (master) I ran following git

  • 0

Currently, git bash in windows pointing to vikas@VIKAS-PC /D/code/myrepo (master)

I ran following git commands:

$ git config --global user.name "Vikas Sharma" 
$ git config --global user.email "vikas.sharma.in@gmail.com"

git init 
git add . 
git commit -m "initial commit"

$ git status 
On branch master nothing to commit (working directory clean)

Now, “git remote” command returns nothing. I was expecting origin repo.

So, i created origin repo as shown below:

$ git remote add origin D:/code/myrepo

$ git push origin "some-external-repo"

But, getting below error:

error: src refspec myrepo does not match any.
error: failed to push some refs to 'D:/code/myrepo'
  • 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-13T20:31:13+00:00Added an answer on June 13, 2026 at 8:31 pm

    finally, I am able to resolve it.

    I mistakenly thought that below command will create local repository with name “origin”:

    $ git remote add origin D:/code/myrepo

    However, later I realised that “master” is the name of local repository. we don’t need to create them explicitly.

    now, below command works for me:

    $ git push “some-external-repo” master

    Thanks anonfunc for helping me on this.

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

Sidebar

Related Questions

I am using Git Bash on Windows 7. We are using GitHub as our
I have a windows version of Git Bash, and I want to use it
I have installing msysgit. When launching Git bash I get the following error, which
I'm having some trouble getting unicode to work for git-bash (on windows 7). I
Currently, this works, if I start bash from a folder already containing a git
Is there a git gui app (for commiting) that shows detected renames? Git-gui currently
Currently, when I run git svn dcommit git creates a separate commit in SVN
I am planning on deploying git for a project I am currently working on
I am currently working on ClearCase and now migrating to GIT. But we need
I am currently working with a subversion repository but I am using git to

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.