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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:03:59+00:00 2026-05-29T19:03:59+00:00

Recently I started working on a portable version of a project by copying all

  • 0

Recently I started working on a “portable” version of a project by copying all the files to a new directory. The portable directory differs from the stable directory only in terms of what has been deleted or commented out; nothing has been added.

I finally decided it’s time to learn source control. Everyone says simply starting is more important than anything else, and I ultimately chose Mercurial since it’s good for branching and (more importantly) I liked the tutorials I found online (e.g., http://hginit.com and http://hgbook.red-bean.com/).

I made a repository for my stable directory, and a clone in a central repository (Dropbox). I’m committing, pushing, etc. Now, however, I’d like to link my (already existing) portable directory with the central repository. I’d like to be able to, say, fix a bug in my stable code, push it to the central repo, and then pull the bug fix into the portable version–without changing anything else in the portable code.

I’m unsure what to do first with the portable code. If I clone the central repo to the portable directory, won’t all my portable code be overwritten the first time I update the portable directory?

  • 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-29T19:04:00+00:00Added an answer on May 29, 2026 at 7:04 pm

    You will need to clone the “central” repository to your portable directory before you will be able to do any work like you describe. However, an easy fix is to copy you portable directory somewhere else and create a new, empty folder. Then, clone your repository into that directory. After that, you should be able to just copy and paste your previous portable directory into the cloned version and allow it to overwrite the files there. That will allow you to commit those changes into version control and be in sync with the central repository.

    If this method won’t work, you will still have to clone the central repository and then make all of your “pending” changes to the existing portable location by hand to your new cloned version.

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

Sidebar

Related Questions

We recently started working with XML files, after many years of experience with the
I'm fairly new to coding and just recently started working on integrating functions into
I've recently started working on a new application which will utilize task parallelism. I
I have recently started working on a web application at a new company and
Recently started working with the scrapy library. I am trying to scrape from a
I've only recently started working with asp.net and c#. Is there a standard practice
I have recently started working on a very large C++ project that, after completing
I have only recently started working with the MVC approach, so I suppose this
I recently started working on a small personal project in Ruby on Rails, and
I have recently started working on some open source project which I found relevant

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.