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

Answer by Rashmi Wijesekara for How do I clone a Git repository into a...

go to the directory where you want to clone the repo.(don't run git init command inside that directory)simply run the command,git clone <git repo url> .Example: git clone...

View Article



Answer by Riyas TK for How do I clone a Git repository into a specific folder?

If you are in the directory you want the contents of the git repository dumped to, run:git clone git@github.com:origin .The "." at the end specifies the current folder as the checkout folder.

View Article

Answer by Manoj Rana for How do I clone a Git repository into a specific folder?

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 custom directory because it...

View Article

Answer by Tarik for How do I 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 prosti for How do I 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 I clone a Git repository into a specific folder?

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 you...

View Article

Answer by Ankit Singh for How do I 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.giteg:git -C /home/ubuntu/ clone git@github.com:kennethreitz/requests.git would pull...

View Article

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

To clone to Present Working Directory:git clone https://github.com/link.gitTo clone to Another Directory:git clone https://github.com/link.git ./Folder1/Folder2

View Article


Answer by kenorb for How do I 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:whateverAlthough it'll still create a whatever folder on top of it, so...

View Article


Answer by Luis for How do I 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 I 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.gitThere is probably a more elegant way of doing this, however I found this to be...

View Article

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

Usagegit 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 I clone a Git repository into a specific folder?

Go into the folder.. If the folder is empty, then:git clone git@github.com:whatever .elsegit initgit remote add origin PATH/TO/REPOgit fetchgit checkout -t origin/master

View Article


Answer by Gene Bo for How do I 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 I clone a Git repository into a...

Basic Git Repository CloningYou clone a repository withgit 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 I clone a Git repository into a specific folder?

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

View Article

Answer by alex for How do I 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 I 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 .The...

View Article

Answer by Paul for How do I 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 I clone a Git repository into a specific...

Option A:git clone git@github.com:whatever folder-nameErgo, 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 I clone a Git repository into a specific folder?

The command git clone git@github.com:whatever creates a directory named whatever containing a Git repository:./ whatever/ .gitI want the contents of the Git repository cloned into my current directory...

View Article


Answer by Movahhedi for How do I clone a Git repository into a specific folder?

If you're cloning a repo from GitHub, you can also use the GitHub CLI.gh repo clone my-name/my-repo ./repo-directory

View Article

Browsing latest articles
Browse All 44 View Live




Latest Images