If you want to copy an existing Git repository - for example, a project you want to contribute - the required command is git clone
, for example:
$ git clone git://github.com/schacon/grit.git
This creates a directory called grit
, initializes a directory .git
inside this, gets all the data from the repository and checks the current copy of the latest version. If you enter the new directory grit
, you will see all the project files in it, ready to be edited or used.
After making your contributions, just make the commit
, the repository owner in turn, will have to authorize it, otherwise its commit's
will not be added to the repository.
Github.com/shacon would be the project address I want to download?
– Regilan Meira
No, this address refers to the user, github.com/schacon/Grit is the project itself, if you want to access it through your browser, but to clone it you must add the .git. (Note: this via command, but at the project address there is a visual button to clone the project)
– Dan Lucio Prada
I tried to access this project that you passed me through the browser, but the option to clone does not appear. Appears Create New File, Upload Filet, Find File Other Options Less Clone.
– Regilan Meira
http://imgur.com/a/LGGPH
– Dan Lucio Prada
I did. I understand we have to clone an entire repository. If there have been several projects within the project do not have the option to clone a specific directory.
– Regilan Meira
Exactly, don’t forget to select a response that solved your problem to help other people who eventually have this question and come to seek answers here. Abrass
– Dan Lucio Prada