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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:36:04+00:00 2026-06-08T09:36:04+00:00

While trying to setup a synchronization for a bitbucket repo on my local server,

  • 0

While trying to setup a synchronization for a bitbucket repo on my local server, I am getting the error not a git repo. Below is the command which I fired:

$ git --git-dir=~/gitRepo/my_repo.git remote add origin git@bitbucket.org:username/my_repo.git
fatal: Not a git repository: '~/gitRepo/my_repo.git'

Even I tried to init the repo (as previously I was not doing that) but still same error I got. Below are the steps which I followed after looking tutorials on Git (as I am new to Git so sorry if I ask very basic question)

$ git init
Initialized empty Git repository in ~/gitRepo/my_repo/.git/
$ git --git-dir=~/gitRepo/my_repo remote add origin git@bitbucket.org:username/my_repo.git
fatal: Not a git repository: '~/gitRepo/my_repo'

Is something I am missing. Basically I am trying to setup a sync of Redmine with BitBucket and this is one of the steps required.

  • 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-08T09:36:06+00:00Added an answer on June 8, 2026 at 9:36 am

    If you didn’t initialize the repo when doing your first command, then the error message is normal: you need to create a repo before adding it any remote.

    As for your second error message: If you are in the git repo directory itself (which you are after a git init), then, as Issac comments, you don’t need a --git-dir parameter.
    But if you still want to add an --git-dir argument, then the path referenced by a --git-dir for a non-bare repo must ends in /.git (like you did in your first command).

    Even after creating a git repo in ~/gitRepo/my_repo:

    • ~/gitRepo/my_repo is not a git repo
    • ~/gitRepo/my_repo/.git is
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to do an initial setup with Hibernate in Eclipse, while deploying with
While trying to search with id sorting (and paginating) im getting from the log:
I am trying to setup Django to use MySQL. I am getting the following
I'm trying to setup a SVN repo for a whole bunch of users. Different
I'm trying to setup a connection pool in Glassfish for a MySQL server. But
I am trying to setup a simple UDP client and server using Ruby. The
While trying to get a 2008 server to connect to a sql server, I
I'm trying to setup a date lookup table as in this: http://www.techrepublic.com/blog/datacenter/simplify-sql-server-2005-queries-with-a-dates-table/326 but the
I am trying to setup multiple BackgroundWorker s to do work and when not
I'm getting the following while trying to use BasicRobot (FEST). I don't know how

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.