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

The Archive Base Latest Questions

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

I already have a local workig space repository in /applications/mamp/htdocs/myproject/.git and i can’t figure

  • 0

I already have a local workig space repository in /applications/mamp/htdocs/myproject/.git and i can’t figure out how to clone it onto a folder in my thumbdrive and use that as my remote to push to.

do i have to create a bare git repository in the directory on my folder first? and then clone my working space one to it?

or do i just cd into my directory on my thumbdrive(with no .git directory) and clone the working space repo to it which would automatically create the .git repo on the thumbdrive?

i’m confused on the proper steps to use my thumbdrive as my remote repo

my thumbdrive’s path is “volumes/thumbdrive/”

now i’m trying to add my remote but i can’t seem to get the path right i guess…

David-Adamss-MacBook-Pro:myproject davidadams$ git remote add flashstick /volumes/thumbdrive/repo/.git
David-Adamss-MacBook-Pro:myproject davidadams$ git remote
flashstick
thumdrive
David-Adamss-MacBook-Pro:myproject davidadams$ git push flashstick master
fatal: '/volumes/thumbdrive/repo/.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

and this didn’t work either

David-Adamss-MacBook-Pro:myproject davidadams$ git remote add flashdrive /volumes/thumbdrive/repo
David-Adamss-MacBook-Pro:myproject davidadams$ git remote
flashdrive
flashstick
thumdrive
David-Adamss-MacBook-Pro:myproject davidadams$ git push flashdrive master
fatal: '/volumes/thumbdrive/repo' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
David-Adamss-MacBook-Pro:myproject davidadams$ 
  • 1 1 Answer
  • 2 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-23T13:17:09+00:00Added an answer on May 23, 2026 at 1:17 pm

    Clone the local repository into your volumes/thumbdrive and then setup remotes to this newly cloned repo from the old one

    `git remote add thumbdrive volumes/thumbdrive`
    

    The remote name after above would be thumbdrive ( use origin if you want ) and you can push like

    `git push thumbdrive master`
    

    Another approach:

    Copy / move /applications/mamp/htdocs/myproject/.git to the thumbdrive and then clone it back to the desired location.

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

Sidebar

Related Questions

I have cloned a Git project into a local Git repository. Then I have
I have already got a local master branch tracking the remote master branch of
I have a local branch that is tracking of a remote branch on git.
I have a tracked database (already added) file in git. I want this file
I'm a little confused about how EGit workes. I have an existing git repository
Okay I've been trying to figure this out for a while now. I have
I am using GitHub as my remote repository. I have already pushed 5 commits
I am absolutely new to WPF. I can't figure out why isn't the VirtualizingStackPanel
I already have my azure web role running in cloud using azure sdk 1.6.
We already have the database with real data inside. Now we want to build

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.