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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:51:41+00:00 2026-05-23T08:51:41+00:00

So I just opened an account on github, and trying to submit (checkin /

  • 0

So I just opened an account on github, and trying to submit (checkin / commit/ whatever…) a project to a new repo.

I followed the following steps:

  • create a repo on the web
  • followed those steps from the web:

Next steps:

mkdir PROJECT
cd PROJECT
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:username/PROJECT.git
git push -u origin master

When I run git remote add origin git@github.com:username/PROJECT.git I get the following error:

fatal: Not a git repository (or any of the parent directories): .git

Any ideas? In any case, I can’t clone this project – it’s empty on the repo.

Thanks!

  • 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-23T08:51:42+00:00Added an answer on May 23, 2026 at 8:51 am

    That error indicates that when you ran the ‘git remote add’ command you’re not in a directory which is a git repository. I would only expect that to happen if you’re not in the directory where you did the ‘git init’. Did all of previous git commands succeed? Did you remove the .git directory before you did the ‘git remote add’ or cd out of the PROJECT directory? Did you just run the ‘git remote add’ in another directory?

    Can you cut and paste a transcript of what you’ve done so we can help determine what went awry?

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

Sidebar

Related Questions

I just opened my project in the new XCode 4.2 for the first time
I just checked out a revision from Subversion to a new folder. Opened the
I'm exploring OpenID for a new hobby project. Mostly just to learn how it
This is probably a no brainer but... I've just opened a solution in VS2008
just think that when I opened my file then when I want to write
I just downloaded the Orchard CMS , opened it up in VS2008 and hit
I want certain projects in my solution opened in Visual Studio have different icons..Just
I just opened my visual studio 2005 solution file with multiple projects and all
I just opened a webpage in safari and what did I see? The whole
So I am trying to let my customers login in with Twitter, and just

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.