Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clone a repository from GitHub

I am working on a project where I need to add a drag and drop in a div, then I started looking at libraries on drag and drop which should work on mobile devices too, and found one such library called Dragula.

I tried to clone the repository in my machine. I downloaded git which looks like this but the problem is I am not able to clone the particular library from GitHub,

Git

like image 469
Ibibo Avatar asked Jun 19 '26 17:06

Ibibo


2 Answers

you have two options:

1.you can always download as project .zip if you can't setup git properly, or doesn't want to use command line.

screenshot

2.use the copy button next to the link and write in command prompt.

git clone paste-the-link

tip: click right button on mouse to paste

tip2: how to setup git on windows enter image description here

like image 113
touhid udoy Avatar answered Jun 21 '26 06:06

touhid udoy


Click that Git Bash icon that will open a terminal window.

Optionally create a directory and change into it, for example:

mkdir dev
cd dev

This command will clone the repository from GitHub:

git clone https://github.com/bevacqua/dragula.git

The URL to be used as a parameter for the git clone command is identical with the URL for the project landing page on GitHub.

like image 39
anothernode Avatar answered Jun 21 '26 06:06

anothernode