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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:27:23+00:00 2026-05-12T13:27:23+00:00

I am used to pull from a git repository of someone. Today he moved

  • 0

I am used to pull from a git repository of someone. Today he moved his repository to another address. I wonder if there is some way for me to pull from the new address and to get the info of what changes he made with respect to last time before his moving?

What I have done is "git clone newaddress" under my repository pulled from his old one. The output is like:

got xxx

walk xxx

got xxx

got xxx

walk xxx

Getting alternates list for newaddress

Getting pack list for newaddress

Getting index for pack xxx

Getting pack xxx

which contains xxx

got xxx

got xxx

walk xxx

…

Then I "git pull" and got the following message which I don’t understand:

You asked me to pull without telling me which branch you
want to merge with, and ‘branch.master.merge’ in
your configuration file does not tell me either. Please
name which branch you want to merge on the command line and
try again (e.g. ‘git pull ‘).
See git-pull(1) for details on the refspec.

If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:

branch.master.remote = <nickname>
branch.master.merge = <remote-ref>
remote.<nickname>.url = <url>
remote.<nickname>.fetch = <refspec>

See git-config(1) for details.

What can I do now to still be able to get the info of what changes he made with respect to last time before his moving?

Thanks and regards!

  • 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-12T13:27:23+00:00Added an answer on May 12, 2026 at 1:27 pm

    If I’m understanding your question correctly, what you are looking to do is replace your current remote origin with a new one. I don’t know if you can replace it from command line, but you can change it in your .git/config (this is in your project directory)

    OLD

    [remote "origin"]
      url = git+ssh://original_repository.com/my_project.git
      ...
    

    NEW

    [remote "origin"]
      url = git+ssh://new_repository.com/my_project.git
      ...
    

    The git+ssh part might be something like git@ (this is what it would be if you were using github), or I’m sure a variety of other things. This might help clear up some things that I left out or didn’t explain well enough: Changing Your Origin.

    Hope this helps answer your question. Cheers.

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

Sidebar

Related Questions

Can I set hooks for pull/pushing from/to a git-svn managed repository? The situation is
I have a local repository that pulls from a remote one. Running git pull
Is there any way with Git (on windows) to work with the same repository
I have used the embedRelation() to pull another form into the sfGuard user form.
I'm using Excel to pull data from an SQL db. I used the code
I'm trying to git pull from a PHP file, but it seems like the
If I have an empty repository git init and I want to pull in
So I've created a git repository, set up some tags and remotes on my
I am trying to pull the project from git hub. one of my project
I'm a Git newbie. I recently moved a Rails project from Subversion to Git.

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.