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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:36:55+00:00 2026-06-02T10:36:55+00:00

Use Case: I have some repo on GitHub, someone forked it and added new

  • 0

Use Case: I have some repo on GitHub, someone forked it and added new feature and initiated pull request.
I can’t automatically merge it because there are some minor problems I would like to fix first.

It’s one-time activity I’ll never need this remote repository, so I don’t want to create local remote branch.

Basically I would like to do:

  1. copy files from remote repository and rewrite my own (without any git-related information).
  2. see difference with my current head.
  3. fix something and commit it.

How to do that?

git checkout git://github.com/xxx/xxx.git doesn’t works at all (fail with error)

git fetch git://github.com/xxx/xxx.git works but doesn’t update anything

  • 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-02T10:36:56+00:00Added an answer on June 2, 2026 at 10:36 am

    You want to use FETCH_HEAD.

    whenever you run git fetch ... a magic reference called FETCH_HEAD is created.

    Try for example:

    git fetch git://github.com/xxx/xxx.git branch_name && git merge FETCH_HEAD
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following use case, a struct with some boolean and int variables
We have a use case in our application where a user triggers a request
I have some code that 100% works for the use case I have. I'm
Use case: we have some project meta-data files which we want tracked, but are
In C# I have a use case where I have a mapping from int
I'm just starting to learn AspectJ, and I have use-case for say, User login.
I have the following use case , lot of code which was tightly coupled
My use case is very simple : I have a GUI application, and inside
I have a use case where I need to call a (non-static) method in
I have a use case where I am setting the page focus to 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.