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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:07:53+00:00 2026-06-07T22:07:53+00:00

I created a small local Git repository on my laptop to start some work.

  • 0

I created a small local Git repository on my laptop to start some work. After a while I decided I wanted to share it with friends; so I cloned it to a USB key. When my friends clone from the USB key, their local repository shows the USB key as their origin. So their pushes will go there (assuming they have the key installed). But my copy shows nothing when I run “git remote -v” because I didn’t create my copy through a clone, I used init.

How do I modify my local repository to treat the USB key as the “new origin”? I’m brand new to Git so I’m still learning to “think Git”. I have a few guesses how this might be typically done.

  1. Remove my local repository and clone it back from the USB key.
  2. Invoke some incantation of “git remote add” to add the USB key repository back to my local as the “origin”.

Is this a common use-case? Or is something else typically done?

  • 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-07T22:07:54+00:00Added an answer on June 7, 2026 at 10:07 pm

    You should be able to do something like this from your original repository:

    git remote add origin /path/to/usbkey/repo
    

    That should ad a remote with the name origin to the current repository.

    Here’s a link to the documentation:

    git remote

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

Sidebar

Related Questions

I've created small database under SQL Server 2008 . Now i wanted to move
I've created a small web service that returns some json, and the returned json
We have 2-3 small teams of 2-3 people. We all use git for local
I'm using git and been working heavily on my local repository the last week.
I'm playing around with HTML5. For that purpose I created some small Javascript widget
I created a small WPF desktop application. I am thinking about how to make
I've created a small helpers framework and I want it to be multi-languages. So
I have created a small chatting application in C#, and started as a Console
I have created a small and simple android app. I tried installing it on
I have created a small parser in c using flex and bison. The parser

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.