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

The Archive Base Latest Questions

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

How do I fix the path of my local git repo after move? previous

  • 0

How do I fix the path of my local git repo after move?

previous local location: /C/website
new local location: /C/Projects/website
remote location: git@bitbucket.org:username/website.git

I moved my git repository from one folder /website to another /projects/website and now I get an error:

user@Thinkpad /C/Projects/website (master)
$ git push
fatal: 'C:/website' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Is there any way to fix this without having to re-clone the project?
I tried:

$ git init
Reinitialized existing Git repository in c:/Projects/website/.git/

It that did nothing and I got the exact same error again when I tried to push.

Edit:

I ran: git config remote.origin.url C:/Projects/website. Now when I commit after changing files I get the following reply:

user@Thinkpad /C/Projects/website (master)
$ git commit -m "added something"
[master e163ad9] added something
 0 files changed
 create mode 100644 something

user@Thinkpad /C/Projects/website (master)
$ git push
Everything up-to-date
  • 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-17T18:13:16+00:00Added an answer on June 17, 2026 at 6:13 pm

    Run git config -e and change the address of the remote, to the correct remote location. In your case that will be url = git@bitbucket.org:username/website.git This command will open for editing the .git/config file of the repository.

    (thanks to @Richard for the command)

    Shortcut command:

    git config remote.origin.url git@bitbucket.org:username/website.git
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to push changes from my local repo to a remote repo. When
i have a website @local and lots of images in site, but after I
fopen(C:/xampp/htdocs/adv/application/views\helpers/Layout.php) how to fix this path? And why does ZF is searching for bundled
My file directories have not changed, but every time I move from local host
Here's the code first user = os.path.expanduser('~\AppData\Local\Temp') os.path.exists(user,'\whatever.txt') Now the problem is, when I
I'm trying to fix the problem asked / answered here: Repairing Postgresql after upgrading
I'm new to PowerShell and I can't seem to find how to fix this
To fix the UITextview blue color issue for links in ios ( i want
How can I fix the following error? error: cs0016 could not write to output
I am trying to fix a regular input box with padding, border, inside a

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.