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

  • Home
  • SEARCH
  • 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 8745043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:56:30+00:00 2026-06-13T11:56:30+00:00

I have an existing repository on BitBucket, and am cloning it locally using SmartGit

  • 0

I have an existing repository on BitBucket, and am cloning it locally using SmartGit 3 on Windows 7 (x64). I have a folder, let’s say C:/FolderA/FolderB that I want to place it in. (So that readme.txt becomes C:/FolderA/FolderB/readme.txt.)

However, when I clone the repository, and set the Path to C:/FolderA/FolderB, it creates readme.txt in C:/FolderA/FolderB/repository-name/readme.txt. How can I prevent this?

If there is no way to do this with SmartGit, how can I achieve it from the Git command line?

NB: Google had nothing to say on this, either… [1] [2] [3] etc…

  • 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-13T11:56:31+00:00Added an answer on June 13, 2026 at 11:56 am

    You can use

    git clone <git-url> [target-dir]
    

    If you do not specify target dir, it will by default create new directory named after repo name (and this is what you are seeing).

    You can always rename your target dir or move it around as you wish (one level up for example) – git does not really care, as long as .git sub-dir is intact.

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

Sidebar

Related Questions

I have an existing SVN repository which contains a folder that holds my project.
I have created a repository online and I want to add an existing folder
I have an existing Mercurial repository for a C++ application in a small corporate
I have an existing Git repository on Github. I wanted to reorganise my code,
I'm really quite frustrated at this point. I have an existing hg repository that
I have an existing ASP.Net MVC project that is using entities / repositories in
I have a Subversion repository on a drive separated from my system drive (Windows
So I have a whole pre-existing directory, let's call it c:/src/foo , with a
I'm a little confused about how EGit workes. I have an existing git repository
I have a current existing project repository that has a lot of code that

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.