Quantcast
Channel: How do I clone a Git repository into a specific folder? - Stack Overflow
Browsing all 44 articles
Browse latest View live

Answer by Tarik for How do you clone a Git repository into a specific folder?

Although all of the answers above are good, I would like to propose a new method instead of using the symbolic link method in public html directory as proposed BEST in the accepted answer. You need to...

View Article



Answer by Muhammad Awais for How do you clone a Git repository into a...

I will recommend you to follow the following link: https://help.github.com/en/articles/cloning-a-repository If you get the following error while git clone URL command fatal: unable to access 'URL':...

View Article

Answer by prosti for How do you clone a Git repository into a specific folder?

From some reason this syntax is not standing out: git clone repo-url [folder] Here folder is an optional path to the local folder (which will be a local repository). Git clone will also pull code from...

View Article

Answer by Tarit Ray for How do you clone a Git repository into a specific...

For Windows user 1> Open command prompt. 2> Change the directory to destination folder (Where you want to store your project in local machine.) 3> Now go to project setting online(From where...

View Article

Answer by Ankit Singh for How do you clone a Git repository into a specific...

If you are using ssh for git cloning you can use the following command. git -C path clone git@github.com:path_to_repo.git eg: git -C /home/ubuntu/ clone git@github.com:kennethreitz/requests.git would...

View Article


Answer by Sarat Chandra for How do you clone a Git repository into a specific...

To clone to Present Working Directory: git clone https://github.com/link.git To clone to Another Directory: git clone https://github.com/link.git ./Folder1/Folder2 Hope it Helps :)

View Article

Answer by kenorb for How do you clone a Git repository into a specific folder?

To clone git repository into a specific folder, you can use -C <path> parameter, e.g. git -C /httpdocs clone git@github.com:whatever Although it'll still create a whatever folder on top of it, so...

View Article

Answer by Luis for How do you clone a Git repository into a specific folder?

If you want to clone into the current folder, you should try this: git clone https://github.com/example/example.git ./

View Article


Answer by Ev- for How do you clone a Git repository into a specific folder?

Here's how I would do it, but I have made an alias to do it for me. $ cd ~Downloads/git; git clone https:git.foo/poo.git There is probably a more elegant way of doing this, however I found this to be...

View Article


Answer by Nagarjun for How do you clone a Git repository into a specific folder?

Usage git clone <repository> Clone the repository located at the <repository> onto the local machine. The original repository can be located on the local filesystem or on a remote machine...

View Article

Answer by csomakk for How do you clone a Git repository into a specific folder?

Go into the folder.. If the folder is empty, then: git clone git@github.com:whatever . else git init git remote add origin PATH/TO/REPO git fetch git checkout -t origin/master

View Article

Answer by Gene Bo for How do you clone a Git repository into a specific folder?

Regarding this line from the original post: "I know how to move the files after I've cloned the repo, but this seems to break git" I am able to do that and I don't see any issues so far with my add,...

View Article

Answer by Craig Gjerdingen for How do you clone a Git repository into a...

Basic Git Repository Cloning You clone a repository with git clone [url] For example, if you want to clone the Stanford University Drupal Open Framework Git library called open_framework, you can do so...

View Article


Answer by Selvamani for How do you clone a Git repository into a specific...

Clone: git clone git@jittre.unfuddle.com:jittre/name.git Clone the "specific branch": git clone -b [branch-name] git@jittre.unfuddle.com:jittre/name.git

View Article

Answer by alex for How do you clone a Git repository into a specific folder?

Make sure you remove the .git repository if you are trying to check thing out into the current directory. rm -rf .git then git clone https://github.com/symfony/symfony-sandbox.git

View Article


Answer by J Wynia for How do you clone a Git repository into a specific folder?

The example I think a lot of people asking this question are after is this. If you are in the directory you want the contents of the git repository dumped to, run: git clone git@github.com:whatever ....

View Article

Answer by Paul for How do you clone a Git repository into a specific folder?

When you move the files to where you want them, are you also moving the .git directory? Depending on your OS and configuration, this directory may be hidden. It contains the repo and the supporting...

View Article


Answer by Can Berk Güder for How do you clone a Git repository into a...

Option A: git clone git@github.com:whatever folder-name Ergo, for right here use: git clone git@github.com:whatever . Option B: Move the .git folder, too. Note that the .git folder is hidden in most...

View Article

How do you clone a Git repository into a specific folder?

Executing the command git clone git@github.com:whatever creates a directory in my current folder named whatever, and drops the contents of the Git repository into that folder:...

View Article

Answer by Manoj Rana for How do you clone a Git repository into a specific...

You can use following git command to clone with custom directory namegit clone <git_repo_url> <your_custom_directory_name>Note: You don't need to create your custome directory because it...

View Article
Browsing all 44 articles
Browse latest View live




Latest Images