gitlab-org--gitlab-foss/doc/gitlab-basics/command-line-commands.md

24 lines
1.1 KiB
Markdown
Raw Normal View History

2015-06-30 02:03:17 +00:00
# Command Line basic commands
## Start working on your project
2015-06-30 01:53:51 +00:00
* In Git, when you copy a project you say you "clone" it. To work on a git project locally (from your own computer), you will need to clone it. To do this, start by signing in at GitLab.com.. To do it, go to your [gitlab.com](https://gitlab.com) account
2015-06-25 23:44:31 +00:00
* When you are on your Dashboard, click on the project that you'd like to clone, which you'll find at the right side of your screen
![Select a project](basicsimages/select_project.png)
2015-06-30 16:10:27 +00:00
* To work in the project, you can copy a link to the Git repository through a SSH or a HTTPS protocol. SSH is easier to use after it's been [setup](create-your-ssh-keys.md). When you're in the project, click on the HTTPS or SSH button at the right side of your screen. Then copy the link (you'll have to paste it on your shell in the next step)
![Copy the HTTPS](basicsimages/https.png)
2015-06-30 01:53:51 +00:00
## On the command line
2015-06-25 23:44:31 +00:00
* To clone your project, go to your computer's shell and type the following command
```
git clone PASTE HTTPS HERE
```
2015-06-30 01:53:51 +00:00
* A clone of the project will be created in your computer