Commit 473fb23a authored by Job van der Voort's avatar Job van der Voort

Merge branch 'starting_shell' into 'master'

Starting shell document to GitLab basics

I added a new branch for all the changes on this MR https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/1863

Everything should look nicer now :)

See merge request !1869
parents b78981bc 0221628f
# GitLab basics
Step-by-step guides on the basics of working with Git and GitLab.
* [Start using Git on the commandline](start_using_git.md)
doc/gitlab_basics/basicsimages/add_new_merge_request.png

9.25 KB

doc/gitlab_basics/basicsimages/add_sshkey.png

1.43 KB

doc/gitlab_basics/basicsimages/branch_info.png

7.79 KB

doc/gitlab_basics/basicsimages/branch_name.png

2.15 KB

doc/gitlab_basics/basicsimages/branches.png

3.57 KB

doc/gitlab_basics/basicsimages/commit_changes.png

5.44 KB

doc/gitlab_basics/basicsimages/commit_message.png

5.57 KB

doc/gitlab_basics/basicsimages/commits.png

4.16 KB

doc/gitlab_basics/basicsimages/compare_braches.png

1.59 KB

doc/gitlab_basics/basicsimages/create_file.png

2.46 KB

doc/gitlab_basics/basicsimages/create_group.png

3.15 KB

doc/gitlab_basics/basicsimages/edit_file.png

2.21 KB

doc/gitlab_basics/basicsimages/file_located.png

3.08 KB

doc/gitlab_basics/basicsimages/file_name.png

2.48 KB

doc/gitlab_basics/basicsimages/find_file.png

8.63 KB

doc/gitlab_basics/basicsimages/find_group.png

6.01 KB

doc/gitlab_basics/basicsimages/fork.png

1.02 KB

doc/gitlab_basics/basicsimages/group_info.png

15.8 KB

doc/gitlab_basics/basicsimages/groups.png

4.74 KB

doc/gitlab_basics/basicsimages/https.png

2.82 KB

doc/gitlab_basics/basicsimages/image_file.png

2.87 KB

doc/gitlab_basics/basicsimages/issue_title.png

8.85 KB

doc/gitlab_basics/basicsimages/issues.png

4.23 KB

doc/gitlab_basics/basicsimages/key.png

1.23 KB

doc/gitlab_basics/basicsimages/merge_requests.png

4.28 KB

doc/gitlab_basics/basicsimages/new_issue.png

2.9 KB

doc/gitlab_basics/basicsimages/new_merge_request.png

3.15 KB

doc/gitlab_basics/basicsimages/new_project.png

2.26 KB

doc/gitlab_basics/basicsimages/newbranch.png

1.28 KB

doc/gitlab_basics/basicsimages/paste_sshkey.png

8.42 KB

doc/gitlab_basics/basicsimages/profile_settings.png

1.17 KB

doc/gitlab_basics/basicsimages/project_info.png

21.3 KB

doc/gitlab_basics/basicsimages/public_file_link.png

2.97 KB

doc/gitlab_basics/basicsimages/select_branch.png

11.9 KB

doc/gitlab_basics/basicsimages/select_project.png

16.4 KB

doc/gitlab_basics/basicsimages/settings.png

4.22 KB

doc/gitlab_basics/basicsimages/shh_keys.png

4.86 KB

doc/gitlab_basics/basicsimages/submit_new_issue.png

8.87 KB

doc/gitlab_basics/basicsimages/title_description_mr.png

12.5 KB

doc/gitlab_basics/basicsimages/white_space.png

3.62 KB

# Start using Git on the commandline
If you want to start using a Git and GitLab, make sure that you have created an account on [gitlab.com](https://about.gitlab.com/)
## Open a shell
* Depending on your operating system, find the shell of your preference. Here are some suggestions
- [Terminal](http://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line) on Mac OSX
- [GitBash](https://msysgit.github.io) on Windows
- [Linux Terminal](http://www.howtogeek.com/140679/beginner-geek-how-to-start-using-the-linux-terminal/) on Linux
## Check if Git has already been installed
* Git is usually preinstalled on Mac and Linux
* Type the following command and then press enter
```
git --version
```
* You should receive a message that will tell you which Git version you have in your computer. If you don’t receive a "Git version" message, it means that you need to [download Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
* If Git doesn't automatically download, there's an option on the website to [download manually](https://git-scm.com/downloads). Then follow the steps on the installation window
* After you finished installing, open a new shell and type "git --version" again to verify that it was correctly installed
## Add your Git username and set your email
* It is important because every Git commit that you create will use this information
* On your shell, type the following command to add your username
```
git config --global user.name ADD YOUR USERNAME
```
* Then verify that you have the correct username
```
git config --global user.name
```
* To set your email address, type the following command
```
git config --global user.email ADD YOUR EMAIL
```
* To verify that you entered your email correctly, type
```
git config --global user.email
```
* You'll need to do this only once because you are using the "--global" option. It tells Git to always use this information for anything you do on that system. If you want to override this with a different username or email address for specific projects, you can run the command without the "--global" option when you’re in that project
## Check your information
* To view the information that you entered, type
```
git config --global --list
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment