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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:20:28+00:00 2026-06-13T06:20:28+00:00

I have recently taken over a development project that has a Git repository linked

  • 0

I have recently taken over a development project that has a Git repository linked to a remote repository hosted on Git Hub.

I have full access to the server that hosts the project and has the Git repository.

I have my own account on Git Hub and want to carry on using the current repository.

What is the best way to update the repository on the server, so it uses my remote repository?

The previous developer is no longer available, so I can’t access their Git Hub account or contact them to request anything. The repository was hosted as private on Git Hub.

I am not 100% confident using Git and just want some advice to avoid any accidental problems I may cause 🙂

  • 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-13T06:20:29+00:00Added an answer on June 13, 2026 at 6:20 am
    1. Create new repo on GitHub with correct name.

    2. Copy to your clipboard the https: clone address found when viewing the repo on github

    3. From the git command line inside your repo:

      > git remote rm *name of old remote repo*
      

      The above line disassociates the old repo from your repo (but it could be added back again if you want)

      > git remote add origin *paste from clipboard*
      

      This line above adds a new remote repo to your repo, aliased with the name ‘origin’

      > git push origin
      

      The last line will send your commit history and all source code to the new remote. After doing this your code should be visible in github under the new repo.

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

Sidebar

Related Questions

I have a fresh git-svn repo (11.13 GB) that has over a 100,000 objects
I have recently taken over an application that uses the Peter Blum Date and
I have recently taken over a project in PHP/CakePHP . Now I wanted to
We have taken over a .NET project recently and upon looking at the db
I have recently taken over development of a legacy system and want to be
I've recently taken over a project, and the original developer has gone. I'm now
I have recently taken on a project in which I need to integrate with
I've recently taken over development of a classic ASP application after the sole developer
I have a good sized hobby project, around 66K LOC, over at http://www.wheelmud.net Recently,
I've recently taken over development of a website written in asp.net. Before taking this

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.